defaultenv: simplify usage

* src/ltlenv/defaultenv.hh, src/ltlenv/defaultenv.cc (require): Return
an atomic_prop*, not a formula*.
* src/bin/randaut.cc, src/bin/randltl.cc, src/ltlvisit/apcollect.cc,
src/tgbatest/ltl2tgba.cc, src/tgbatest/randtgba.cc: Do not cast
the return of require().
This commit is contained in:
Alexandre Duret-Lutz 2014-11-30 19:53:14 +01:00
parent e6e416e1e1
commit 4f1535c8fe
7 changed files with 12 additions and 20 deletions

View file

@ -61,8 +61,7 @@ namespace spot
{
std::ostringstream p;
p << 'p' << i;
res.insert(static_cast<const spot::ltl::atomic_prop*>
(e.require(p.str())));
res.insert(e.require(p.str()));
}
return res;
}