mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +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
|
@ -388,10 +388,10 @@ int dbg_cmd_break(DebugCmd cmd, const vector<string>& args)
|
|||
vector<ID*> choices;
|
||||
choose_global_symbols_regex(args[0], choices, true);
|
||||
for ( unsigned int i = 0; i < choices.size(); ++i )
|
||||
locstrings.push_back(choices[i]->Name());
|
||||
locstrings.emplace_back(choices[i]->Name());
|
||||
}
|
||||
else
|
||||
locstrings.push_back(args[0].c_str());
|
||||
locstrings.push_back(args[0]);
|
||||
|
||||
for ( unsigned int strindex = 0; strindex < locstrings.size(); ++strindex )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue