Fix clang-tidy performance-inefficient-vector-operation warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-09 17:21:48 -07:00
parent f386deba94
commit baf00a54e8

View file

@ -144,6 +144,7 @@ macro WhenCall(lhs, func)
auto current_assoc = Z_FRAME->GetTriggerAssoc();
auto n = aux->n;
std::vector<ValPtr> args;
args.reserve(n);
for ( auto i = 0; i < n; ++i )
args.push_back(aux->ToVal(frame, i));
Z_FRAME->SetCall(Z_AUX->call_expr.get());