mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +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
|
@ -518,7 +518,7 @@ void GenIDDefs::TrackID(const ID* id, const ExprPtr& e)
|
|||
{
|
||||
auto oi = id->GetOptInfo();
|
||||
|
||||
ASSERT(barrier_blocks.size() > 0);
|
||||
ASSERT(! barrier_blocks.empty());
|
||||
oi->DefinedAfter(curr_stmt, e,
|
||||
confluence_blocks, barrier_blocks.back());
|
||||
|
||||
|
@ -529,7 +529,7 @@ void GenIDDefs::TrackID(const ID* id, const ExprPtr& e)
|
|||
// block.
|
||||
modified_IDs[i+1].insert(id);
|
||||
|
||||
if ( confluence_blocks.size() == 0 )
|
||||
if ( confluence_blocks.empty() )
|
||||
// This is a definition at the outermost level.
|
||||
modified_IDs[0].insert(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue