mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/topic/timw/easy-pdict-replacements'
* origin/topic/timw/easy-pdict-replacements: Cleanups related to PDict -> std::map replacements Remove other simple uses of PDict Protocols: Remove uses of PDict g_dbgfilemaps: Remove uses of PDict Scope: remove uses of PDict DFA: remove uses of PDict EventRegistry: remove uses of PDict
This commit is contained in:
commit
94c380297e
37 changed files with 275 additions and 298 deletions
|
@ -4347,7 +4347,7 @@ LambdaExpr::LambdaExpr(std::unique_ptr<function_ingredients> arg_ing,
|
|||
|
||||
my_name = "lambda_<" + std::to_string(h[0]) + ">";
|
||||
auto fullname = make_full_var_name(current_module.data(), my_name.data());
|
||||
auto id = global_scope()->Lookup(fullname.data());
|
||||
auto id = global_scope()->Lookup(fullname);
|
||||
|
||||
if ( id )
|
||||
// Just try again to make a unique lambda name. If two peer
|
||||
|
@ -4413,7 +4413,7 @@ EventExpr::EventExpr(const char* arg_name, ListExpr* arg_args)
|
|||
name = arg_name;
|
||||
args = arg_args;
|
||||
|
||||
EventHandler* h = event_registry->Lookup(name.c_str());
|
||||
EventHandler* h = event_registry->Lookup(name);
|
||||
if ( ! h )
|
||||
{
|
||||
h = new EventHandler(name.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue