phase 1 of addressing cppcheck useStlAlgorithm warnings,

this set only includes fill and copy operations.
This commit is contained in:
G.E
2024-05-14 17:37:38 +03:00
parent 6e306a508e
commit 4cefba5ced
19 changed files with 102 additions and 98 deletions

View File

@@ -1008,9 +1008,9 @@ int HS_CDECL main(int argc, char *argv[]) {
if (sigSets.empty()) {
SignatureSet sigs;
sigs.reserve(exprMapTemplate.size());
for (auto i : exprMapTemplate | map_keys) {
sigs.push_back(i);
}
const auto &i = exprMapTemplate | map_keys;
std::copy(begin(i), end(i), std::back_inserter(sigs));
sigSets.emplace_back(exprPath, std::move(sigs));
}