Internal: cppcheck fixes. No functional change intended.

This commit is contained in:
Wilson Snyder
2022-11-27 05:52:40 -05:00
parent 4b3731d318
commit 833780fac1
40 changed files with 175 additions and 121 deletions
+3 -2
View File
@@ -121,8 +121,9 @@ class StatsReport final {
const V3Statistic* repp = &(*it);
if (repp->stage() != "*" && repp->printit()) {
if (maxWidth < repp->name().length()) maxWidth = repp->name().length();
if (stageInt.find(repp->stage()) == stageInt.end()) {
stageInt.emplace(repp->stage(), stage++);
const auto itFoundPair = stageInt.emplace(repp->stage(), stage);
if (itFoundPair.second) {
++stage;
stages.push_back(repp->stage());
}
byName.emplace(repp->name(), repp);