mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Clang-tidy fixes for recent IDPtr changes
This commit is contained in:
parent
e3b22cd21f
commit
26ea7cc655
18 changed files with 50 additions and 51 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
void Replicate(const UDs& from) { use_defs = from->use_defs; }
|
||||
|
||||
bool HasID(const IDPtr& id) { return use_defs.find(id) != use_defs.end(); }
|
||||
bool HasID(const IDPtr& id) const { return use_defs.contains(id); }
|
||||
|
||||
void Add(IDPtr id) { use_defs.insert(std::move(id)); }
|
||||
void Remove(const IDPtr& id) { use_defs.erase(id); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue