mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +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
|
@ -1799,7 +1799,7 @@ BroType* merge_types(const BroType* t1, const BroType* t2)
|
|||
// Doing a lookup here as a roundabout way of ref-ing t1, without
|
||||
// changing the function params which has t1 as const and also
|
||||
// (potentially) avoiding a pitfall mentioned earlier about clones.
|
||||
auto id = global_scope()->Lookup(t1->GetName().data());
|
||||
auto id = global_scope()->Lookup(t1->GetName());
|
||||
|
||||
if ( id && id->AsType() && id->AsType()->Tag() == TYPE_ENUM )
|
||||
// It should make most sense to return the real type here rather
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue