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
|
@ -674,7 +674,7 @@ public:
|
|||
// should always be true other than for certain functions with empty
|
||||
// bodies that are created post-parsing. Available for debugging so
|
||||
// we can assert we have these.
|
||||
bool HaveExpDesc(const Location* loc) const { return exp_desc.count(LocKey(loc)) > 0; }
|
||||
bool HaveExpDesc(const Location* loc) const { return exp_desc.contains(LocKey(loc)); }
|
||||
|
||||
private:
|
||||
// Construct the full expanded description associated with the given
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue