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
|
@ -895,7 +895,7 @@ StmtPtr InitStmt::Duplicate()
|
|||
// Need to duplicate the initializer list since later reductions
|
||||
// can modify it in place.
|
||||
std::vector<IDPtr> new_inits;
|
||||
for ( auto id : inits )
|
||||
for ( const auto& id : inits )
|
||||
new_inits.push_back(id);
|
||||
|
||||
return SetSucc(new InitStmt(new_inits));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue