Minor fixes to compile with GCC 3.3

* src/ltlast/automatop.cc, src/ltlast/automatop.hh: Rename nfa as
get_nfa to avoid a name clash with the `nfa' class.
* src/ltlvisit/clone.cc, src/ltlvisit/nenoform.cc,
src/ltlvisit/tostring.cc, src/tgbaalgos/eltl2tgba_lacim.cc: Use
get_nfa instead of nfa.
* src/tgba/tgbasafracomplement.cc: Don't use a
const_reverse_iterator.
This commit is contained in:
Damien Lefortier 2010-01-20 17:09:06 +01:00
parent dcf7eed11f
commit 0d6fd3225a
8 changed files with 27 additions and 13 deletions

View file

@ -35,7 +35,7 @@ namespace spot
automatop::~automatop()
{
// Get this instance out of the instance map.
triplet p(std::make_pair(nfa(), negated_), children_);
triplet p(std::make_pair(get_nfa(), negated_), children_);
map::iterator i = instances.find(p);
assert (i != instances.end());
instances.erase(i);
@ -51,7 +51,7 @@ namespace spot
automatop::dump() const
{
std::string r = is_negated() ? "!" : "";
r += nfa()->get_name();
r += get_nfa()->get_name();
r += "(";
r += nth(0)->dump();
for (unsigned n = 1; n < size(); ++n)
@ -112,7 +112,7 @@ namespace spot
}
const spot::ltl::nfa::ptr
automatop::nfa() const
automatop::get_nfa() const
{
assert(nfa_ != 0);
return nfa_;

View file

@ -66,7 +66,7 @@ namespace spot
formula* nth(unsigned n);
/// Get the NFA of this operator.
const spot::ltl::nfa::ptr nfa() const;
const spot::ltl::nfa::ptr get_nfa() const;
/// Whether the automaton is negated.
bool is_negated() const;