Cleanups related to PDict -> std::map replacements

This commit is contained in:
Jon Siwek 2019-08-13 19:54:42 -07:00
parent e6558d1f19
commit 87f85ecca1
18 changed files with 41 additions and 36 deletions

View file

@ -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);