mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
gen-zam: Fix a couple of coverity issues
1491335: AUTO_CAUSES_COPY due to a for loop using auto& instead of const auto& 1491338: AUTO_CAUSES_COPY due to a for loop using auto& instead of const auto&
This commit is contained in:
parent
789b06b1ea
commit
bacd56258c
1 changed files with 2 additions and 2 deletions
|
@ -1339,10 +1339,10 @@ void ZAM_ExprOpTemplate::InstantiateEval(const vector<ZAM_OperandType>& ot_orig,
|
|||
}
|
||||
|
||||
if ( zc != ZIC_VEC )
|
||||
for ( auto em1 : eval_mixed_set )
|
||||
for ( const auto& em1 : eval_mixed_set )
|
||||
{
|
||||
auto et1 = em1.first;
|
||||
for ( auto em2 : em1.second )
|
||||
for ( const auto& em2 : em1.second )
|
||||
{
|
||||
auto et2 = em2.first;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue