Fix clang-tidy modernize-loop-convert findings

This commit is contained in:
Tim Wojtulewicz 2025-05-13 10:06:13 -07:00
parent 49b803c0a8
commit f3588657bf
56 changed files with 452 additions and 542 deletions

View file

@ -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;
}