Use emplace_back over push_back where appropriate

This commit is contained in:
Tim Wojtulewicz 2023-07-06 15:53:13 -07:00
parent 0d78eb1933
commit 64b78f6fb9
28 changed files with 86 additions and 86 deletions

View file

@ -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,