mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28: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
|
@ -26,7 +26,7 @@ void GenIDDefs::TraverseFunction(const Func* f, ScopePtr scope, StmtPtr body)
|
|||
// Establish the outermost barrier and associated set of
|
||||
// identifiers.
|
||||
barrier_blocks.push_back(0);
|
||||
modified_IDs.push_back({});
|
||||
modified_IDs.emplace_back();
|
||||
|
||||
for ( const auto& g : pf->Globals() )
|
||||
{
|
||||
|
@ -434,7 +434,7 @@ void GenIDDefs::StartConfluenceBlock(const Stmt* s)
|
|||
barrier_blocks.push_back(confluence_blocks.size());
|
||||
|
||||
confluence_blocks.push_back(s);
|
||||
modified_IDs.push_back({});
|
||||
modified_IDs.emplace_back();
|
||||
}
|
||||
|
||||
void GenIDDefs::EndConfluenceBlock(bool no_orig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue