mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix clang-tidy modernize-use-emplace findings
This commit is contained in:
parent
3943e64372
commit
a3078f3132
9 changed files with 19 additions and 20 deletions
|
@ -696,8 +696,8 @@ StmtPtr ScriptFunc::AddInits(StmtPtr body, const std::vector<IDPtr>& inits) {
|
|||
auto stmt_series = with_location_of(make_intrusive<StmtList>(), body);
|
||||
auto init = with_location_of(make_intrusive<InitStmt>(inits), body);
|
||||
|
||||
stmt_series->Stmts().push_back(std::move(init));
|
||||
stmt_series->Stmts().push_back(std::move(body));
|
||||
stmt_series->Stmts().emplace_back(std::move(init));
|
||||
stmt_series->Stmts().emplace_back(std::move(body));
|
||||
|
||||
return stmt_series;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue