* src/sanity/style.test: Warn about places where size() is used
instead of empty(). * src/misc/bddalloc.cc (bdd_allocator::extend): Use empty() rather than size() when checking emptiness of lists. * src/tgbaalgos/reductgba_sim_del.cc, src/tgbaalgos/minimalce.cc, src/ltlvisit/basicreduce.cc, src/ltlvisit/reduce.cc, src/tgbaalgos/gtec/ce.cc, src/tgbaalgos/ltl2tgba_fm.cc, src/misc/minato.cc: Likewise. * src/ltlast/multop.cc (multop::instance): Call ->size() only once.
This commit is contained in:
parent
f0aa58034c
commit
c30823f7be
11 changed files with 57 additions and 39 deletions
|
|
@ -268,7 +268,7 @@ namespace spot
|
|||
|
||||
}
|
||||
|
||||
if (res->size())
|
||||
if (!res->empty())
|
||||
{
|
||||
result_ = multop::instance(mo->op(), res);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue