mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Fix clang-tidy performance-inefficient-vector-operation warnings in headers
This commit is contained in:
parent
f386deba94
commit
baf00a54e8
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ macro WhenCall(lhs, func)
|
||||||
auto current_assoc = Z_FRAME->GetTriggerAssoc();
|
auto current_assoc = Z_FRAME->GetTriggerAssoc();
|
||||||
auto n = aux->n;
|
auto n = aux->n;
|
||||||
std::vector<ValPtr> args;
|
std::vector<ValPtr> args;
|
||||||
|
args.reserve(n);
|
||||||
for ( auto i = 0; i < n; ++i )
|
for ( auto i = 0; i < n; ++i )
|
||||||
args.push_back(aux->ToVal(frame, i));
|
args.push_back(aux->ToVal(frame, i));
|
||||||
Z_FRAME->SetCall(Z_AUX->call_expr.get());
|
Z_FRAME->SetCall(Z_AUX->call_expr.get());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue