mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18: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
|
@ -156,7 +156,7 @@ shared_ptr<CPP_InitInfo> CPPCompile::RegisterConstant(const ValPtr& vp, int& con
|
|||
const_vals[v] = constants[c_desc] = gi;
|
||||
|
||||
consts_offset = const_offsets[v] = constants_offsets[c_desc] = consts.size();
|
||||
consts.emplace_back(pair(tag, gi->Offset()));
|
||||
consts.emplace_back(tag, gi->Offset());
|
||||
|
||||
return gi;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue