Fix clang-tidy modernize-use-emplace warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-10 09:57:10 -07:00
parent fb55c8856e
commit cb78d2202f
4 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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();
}