mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
low-level cleanups found by code review
This commit is contained in:
parent
8bc04d3593
commit
38578a2ea3
13 changed files with 56 additions and 71 deletions
|
@ -145,7 +145,7 @@ void CPPCompile::ExpandListTypeVar(const TypePtr& t, string& tn)
|
|||
const auto& tl = t->AsTypeList()->GetTypes();
|
||||
auto t_name = tn + "->AsTypeList()";
|
||||
|
||||
for ( auto& tl_i : tl )
|
||||
for ( const auto& tl_i : tl )
|
||||
AddInit(t, t_name + "->Append(" + GenTypeName(tl_i) + ");");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue