Internals: enum constructor cleanups. No functional change intended.

This commit is contained in:
Wilson Snyder
2022-09-15 19:58:10 -04:00
parent dbe1348b4c
commit 2dc85a5acd
26 changed files with 123 additions and 121 deletions
+3 -2
View File
@@ -1335,9 +1335,10 @@ class OrderProcess final : VNDeleter {
~OrderProcess() override {
// Stats
for (int type = 0; type < OrderVEdgeType::_ENUM_END; type++) {
const double count = double(m_statCut[type]);
const double count{m_statCut[type]};
if (count != 0.0) {
V3Stats::addStat(string("Order, cut, ") + OrderVEdgeType(type).ascii(), count);
V3Stats::addStat(std::string{"Order, cut, "} + OrderVEdgeType{type}.ascii(),
count);
}
}
}