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
|
@ -68,7 +68,7 @@ bool LoadPolicyFileText(const char* policy_filename, const std::optional<std::st
|
|||
if ( ! policy_filename )
|
||||
return true;
|
||||
|
||||
if ( policy_files.find(policy_filename) != policy_files.end() )
|
||||
if ( policy_files.contains(policy_filename) )
|
||||
debug_msg("Policy file %s already loaded\n", policy_filename);
|
||||
|
||||
PolicyFile* pf = new PolicyFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue