mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Fix clang-tidy modernize-use-emplace warnings in headers
This commit is contained in:
parent
fb55c8856e
commit
cb78d2202f
4 changed files with 5 additions and 7 deletions
|
@ -88,7 +88,7 @@ eval EvalIndexAnyVec($$, $1, $2)
|
|||
|
||||
macro WhenIndexResCheck(vec)
|
||||
if ( vec && IndexExprWhen::evaluating > 0 )
|
||||
IndexExprWhen::results.push_back({NewRef{}, vec});
|
||||
IndexExprWhen::results.emplace_back(NewRef{}, vec);
|
||||
|
||||
internal-op When-Index-Vec
|
||||
class VVV
|
||||
|
|
|
@ -95,7 +95,7 @@ eval auto vv = $1.AsVector();
|
|||
vv->Assign(0, $2.ToVal(Z_TYPE));
|
||||
else
|
||||
{
|
||||
vv->RawVec().push_back(CopyVal($2));
|
||||
vv->RawVec().emplace_back(CopyVal($2));
|
||||
vv->Modified();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue