mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -912,7 +912,7 @@ Type* Type::LookUpByID(ID* id) {
|
|||
}
|
||||
|
||||
void Type::AddPredefinedType(const string& type_name, Type* type) {
|
||||
ASSERT(type_map_.find(type_name) == type_map_.end());
|
||||
ASSERT(! type_map_.contains(type_name));
|
||||
type_map_[type_name] = type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue