mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Use const auto references to avoid some copies
This commit is contained in:
parent
739efc79be
commit
f7495831a2
5 changed files with 8 additions and 8 deletions
|
@ -519,7 +519,7 @@ static void analyze_scripts_for_ZAM(std::shared_ptr<ProfileFuncs> pfs) {
|
|||
if ( g->GetType()->Tag() != TYPE_FUNC )
|
||||
continue;
|
||||
|
||||
auto v = g->GetVal();
|
||||
const auto& v = g->GetVal();
|
||||
if ( v )
|
||||
func_used_indirectly.insert(v->AsFunc());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue