use container empty() rather than size() where appropriate

This commit is contained in:
Vern Paxson 2021-08-19 09:02:59 -07:00
parent 9b2eb2c373
commit ffd1905f90
13 changed files with 37 additions and 37 deletions

View file

@ -54,7 +54,7 @@ bool CPPCompile::CheckForCollisions()
// the name either (1) wasn't previously used, or (2) if it
// was, it was likewise for an enum or a record.
const auto& tn = t->GetName();
if ( tn.size() == 0 || ! hm.HasGlobal(tn) )
if ( tn.empty() || ! hm.HasGlobal(tn) )
// No concern of collision since the type name
// wasn't previously compiled.
continue;