mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03: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
|
@ -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