Rename formula::ref and formula::unref as formula::clone
and formula::destroy. * src/ltlast/atomic_prop.cc, src/ltlast/automatop.cc, src/ltlast/binop.cc, src/ltlast/formula.hh, src/ltlast/formula.cc, src/ltlast/multop.cc, src/ltlast/unop.cc, src/ltlenv/declenv.cc, src/ltlvisit/basicreduce.cc, src/ltlvisit/clone.cc, src/ltlvisit/destroy.cc, src/ltlvisit/nenoform.cc, src/ltlvisit/randomltl.cc, src/ltlvisit/reduce.cc, src/tgbatest/randtgba.cc: Adjust.
This commit is contained in:
parent
8e4e692e7f
commit
b0888257f8
16 changed files with 63 additions and 54 deletions
|
|
@ -46,7 +46,7 @@ namespace spot
|
|||
instances.erase(i);
|
||||
|
||||
// Dereference child.
|
||||
formula::unref(child());
|
||||
formula::destroy(child());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -110,12 +110,12 @@ namespace spot
|
|||
if (i != instances.end())
|
||||
{
|
||||
// This instance already exists.
|
||||
formula::unref(child);
|
||||
return static_cast<unop*>(i->second->ref());
|
||||
formula::destroy(child);
|
||||
return static_cast<unop*>(i->second->clone());
|
||||
}
|
||||
unop* ap = new unop(op, child);
|
||||
instances[p] = ap;
|
||||
return static_cast<unop*>(ap->ref());
|
||||
return static_cast<unop*>(ap->clone());
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue