mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -83,7 +83,7 @@ bool UseDefs::RemoveUnused(int iter)
|
|||
const auto& inits = init->Inits();
|
||||
std::vector<IDPtr> used_ids;
|
||||
|
||||
for ( auto id : inits )
|
||||
for ( const auto& id : inits )
|
||||
if ( is_atomic_type(id->GetType()) || ! CheckIfUnused(s, id.get(), false) )
|
||||
used_ids.emplace_back(id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue