mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Scope: store IntrusivePtr in local
This commit is contained in:
parent
6e0d331267
commit
785ff57d11
6 changed files with 16 additions and 28 deletions
|
@ -62,7 +62,7 @@ void lookup_global_symbols_regex(const string& orig_regex, vector<ID*>& matches,
|
|||
ID* nextid;
|
||||
for ( const auto& sym : syms )
|
||||
{
|
||||
ID* nextid = sym.second;
|
||||
ID* nextid = sym.second.get();
|
||||
if ( ! func_only || nextid->Type()->Tag() == TYPE_FUNC )
|
||||
if ( ! regexec (&re, nextid->Name(), 0, 0, 0) )
|
||||
matches.push_back(nextid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue