mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58: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
|
@ -24,12 +24,12 @@ void ScriptCoverageManager::AddStmt(Stmt* s)
|
|||
if ( ignoring != 0 )
|
||||
return;
|
||||
|
||||
stmts.push_back({NewRef{}, s});
|
||||
stmts.emplace_back(NewRef{}, s);
|
||||
}
|
||||
|
||||
void ScriptCoverageManager::AddFunction(IDPtr func_id, StmtPtr body)
|
||||
{
|
||||
func_instances.push_back({func_id, body});
|
||||
func_instances.emplace_back(func_id, body);
|
||||
}
|
||||
|
||||
bool ScriptCoverageManager::ReadStats()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue