mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix clang-tidy modernize-loop-convert findings
This commit is contained in:
parent
49b803c0a8
commit
f3588657bf
56 changed files with 452 additions and 542 deletions
|
@ -121,8 +121,8 @@ bool LoadPolicyFileText(const char* policy_filename, const std::optional<std::st
|
|||
}
|
||||
}
|
||||
|
||||
for ( int i = 0; i < int(pf->lines.size()); ++i )
|
||||
assert(pf->lines[i][0] != '\n');
|
||||
for ( const auto& l : pf->lines )
|
||||
assert(l[0] != '\n');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue