mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
use container empty() rather than size() where appropriate
This commit is contained in:
parent
9b2eb2c373
commit
ffd1905f90
13 changed files with 37 additions and 37 deletions
|
@ -94,7 +94,7 @@ bool UseDefs::RemoveUnused(int iter)
|
|||
! CheckIfUnused(s, id.get(), false) )
|
||||
used_ids.emplace_back(id);
|
||||
|
||||
if ( used_ids.size() == 0 )
|
||||
if ( used_ids.empty() )
|
||||
{ // There aren't any ID's to keep.
|
||||
rc->AddStmtToOmit(s);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue