mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
g_dbgfilemaps: Remove uses of PDict
This commit is contained in:
parent
a3deb0446c
commit
d0e8af9343
4 changed files with 9 additions and 9 deletions
|
@ -50,11 +50,11 @@ bool Stmt::SetLocationInfo(const Location* start, const Location* end)
|
|||
|
||||
// Update the Filemap of line number -> statement mapping for
|
||||
// breakpoints (Debug.h).
|
||||
Filemap* map_ptr = (Filemap*) g_dbgfilemaps.Lookup(location->filename);
|
||||
if ( ! map_ptr )
|
||||
auto map_iter = g_dbgfilemaps.find(location->filename);
|
||||
if ( map_iter == g_dbgfilemaps.end() )
|
||||
return false;
|
||||
|
||||
Filemap& map = *map_ptr;
|
||||
Filemap& map = *(map_iter->second);
|
||||
|
||||
StmtLocMapping* new_mapping = new StmtLocMapping(GetLocationInfo(), this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue