mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Cleanups related to PDict -> std::map replacements
This commit is contained in:
parent
e6558d1f19
commit
87f85ecca1
18 changed files with 41 additions and 36 deletions
|
@ -198,7 +198,7 @@ string Specific_RE_Matcher::LookupDef(const string& def)
|
|||
{
|
||||
const auto& iter = defs.find(def);
|
||||
if ( iter != defs.end() )
|
||||
return iter->first;
|
||||
return iter->second;
|
||||
|
||||
return string();
|
||||
}
|
||||
|
@ -418,7 +418,10 @@ unsigned int Specific_RE_Matcher::MemoryAllocation() const
|
|||
|
||||
size += pad_size(sizeof(CCL*) * ccl_dict.size());
|
||||
for ( const auto& entry : ccl_dict )
|
||||
{
|
||||
size += padded_sizeof(std::string) + pad_size(sizeof(std::string::value_type) * entry.first.size());
|
||||
size += entry.second->MemoryAllocation();
|
||||
}
|
||||
|
||||
for ( const auto& entry : defs )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue