mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +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
|
@ -197,7 +197,7 @@ void get_first_statement(Stmt* list, Stmt*& first, Location& loc)
|
|||
static void parse_function_name(vector<ParseLocationRec>& result,
|
||||
ParseLocationRec& plr, const string& s)
|
||||
{ // function name
|
||||
auto id = lookup_ID(s.c_str(), current_module.c_str());
|
||||
const auto& id = lookup_ID(s.c_str(), current_module.c_str());
|
||||
|
||||
if ( ! id )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue