mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 14:15:35 +08:00
Use fallthrough attribute (C++17 feature)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -174,11 +174,11 @@ namespace BlackMisc
|
||||
{
|
||||
default:
|
||||
case CStatusMessage::SeverityDebug: result.m_severities.insert(CStatusMessage::SeverityDebug);
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case CStatusMessage::SeverityInfo: result.m_severities.insert(CStatusMessage::SeverityInfo);
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case CStatusMessage::SeverityWarning: result.m_severities.insert(CStatusMessage::SeverityWarning);
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case CStatusMessage::SeverityError: result.m_severities.insert(CStatusMessage::SeverityError);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user