mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use .contains() instead of .find() or .count()
This commit is contained in:
parent
d20550f553
commit
b592b6c998
68 changed files with 201 additions and 207 deletions
|
@ -200,7 +200,7 @@ void CPPCompile::InitializeGlobals() {
|
|||
if ( ! ofiles.empty() && ! obj_matches_opt_files(g) )
|
||||
continue;
|
||||
|
||||
if ( accessed_globals.count(g) == 0 )
|
||||
if ( ! accessed_globals.contains(g) )
|
||||
continue;
|
||||
|
||||
auto ic = ginit.IC();
|
||||
|
@ -281,7 +281,7 @@ void CPPCompile::GenStandaloneActivation() {
|
|||
auto fname = BodyName(func);
|
||||
auto bname = Canonicalize(fname) + "_zf";
|
||||
|
||||
if ( compiled_funcs.count(bname) == 0 )
|
||||
if ( ! compiled_funcs.contains(bname) )
|
||||
// We didn't wind up compiling it.
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue