Use fallthrough attribute (C++17 feature)

This commit is contained in:
Mat Sutcliffe
2021-04-17 16:35:21 +01:00
parent 22301c1a1f
commit f228055229
7 changed files with 11 additions and 11 deletions

View File

@@ -397,7 +397,7 @@ namespace BlackMisc
const int c = Compare::compare(this->getGroundElevationInfo(), compareValue.getGroundElevationInfo());
if (c != 0) { return c; }
}
Q_FALLTHROUGH();
[[fallthrough]];
case IndexGroundElevationInfoTransferred: return Compare::compare(m_isElvInfoTransferred, compareValue.m_isElvInfoTransferred);
case IndexCanLikelySkipNearGroundInterpolation: return Compare::compare(this->canLikelySkipNearGroundInterpolation(), compareValue.canLikelySkipNearGroundInterpolation());
default: break;