mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +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
|
@ -128,7 +128,7 @@ ID* lookup_ID(const char* name, const char* curr_module, bool no_global,
|
|||
|
||||
for ( int i = scopes.length() - 1; i >= 0; --i )
|
||||
{
|
||||
ID* id = scopes[i]->Lookup(fullname.c_str());
|
||||
ID* id = scopes[i]->Lookup(fullname);
|
||||
if ( id )
|
||||
{
|
||||
if ( need_export && ! id->IsExport() && ! in_debug )
|
||||
|
@ -144,7 +144,7 @@ ID* lookup_ID(const char* name, const char* curr_module, bool no_global,
|
|||
! same_module_only) )
|
||||
{
|
||||
string globalname = make_full_var_name(GLOBAL_MODULE_NAME, name);
|
||||
ID* id = global_scope()->Lookup(globalname.c_str());
|
||||
ID* id = global_scope()->Lookup(globalname);
|
||||
if ( id )
|
||||
{
|
||||
Ref(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue