mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Use emplace_back over push_back where appropriate
This commit is contained in:
parent
0d78eb1933
commit
64b78f6fb9
28 changed files with 86 additions and 86 deletions
|
@ -208,7 +208,7 @@ FuncValPtr lookup_func__CPP(string name, int num_bodies, vector<p_hash_type> has
|
|||
ASSERT(cs != compiled_scripts.end());
|
||||
|
||||
const auto& f = cs->second;
|
||||
bodies.push_back(f.body);
|
||||
bodies.emplace_back(f.body);
|
||||
priorities.push_back(f.priority);
|
||||
|
||||
// This might register the same event more than once,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue