mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix a swath of AUTO_CAUSES_COPY issues reported by Coverity
This commit is contained in:
parent
f631551ffb
commit
2abc82722f
7 changed files with 9 additions and 9 deletions
|
@ -314,7 +314,7 @@ void CPPCompile::GenEpilog()
|
|||
GenCPPDynStmt();
|
||||
|
||||
NL();
|
||||
for ( auto gi : all_global_info )
|
||||
for ( const auto& gi : all_global_info )
|
||||
gi->GenerateInitializers(this);
|
||||
|
||||
NL();
|
||||
|
@ -449,7 +449,7 @@ void CPPCompile::GenFinishInit()
|
|||
max_cohort = std::max(max_cohort, gi->MaxCohort());
|
||||
|
||||
for ( auto c = 0; c <= max_cohort; ++c )
|
||||
for ( auto gi : all_global_info )
|
||||
for ( const auto& gi : all_global_info )
|
||||
if ( gi->CohortSize(c) > 0 )
|
||||
Emit("%s.InitializeCohort(&im, %s);", gi->InitializersName(), Fmt(c));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue