mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Change lookup_ID() to return a const-reference
This commit is contained in:
parent
8f95a2a0bb
commit
0af7f8141b
9 changed files with 32 additions and 28 deletions
|
@ -39,8 +39,8 @@ FuncType* EventHandler::FType(bool check_export)
|
|||
if ( type )
|
||||
return type;
|
||||
|
||||
auto id = lookup_ID(name, current_module.c_str(), false, false,
|
||||
check_export);
|
||||
const auto& id = lookup_ID(name, current_module.c_str(), false, false,
|
||||
check_export);
|
||||
|
||||
if ( ! id )
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue