mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Use fallthrough attribute (C++17 feature)
This commit is contained in:
@@ -618,7 +618,7 @@ namespace BlackGui
|
||||
// fall thru intended
|
||||
this->formatVPilotView();
|
||||
}
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
default:
|
||||
{
|
||||
ui->frp_Editors->setVisible(true);
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace BlackGui
|
||||
case OwnModelSet:
|
||||
// intentional fall thru
|
||||
m_columns.addColumn(CColumn::orderColumn());
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
|
||||
case OwnAircraftModelMappingTool:
|
||||
case StashModel:
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace BlackGui
|
||||
{
|
||||
case NormalWithOrder:
|
||||
m_columns.addColumn(CColumn::orderColumn());
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case NotSet:
|
||||
case Normal:
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace BlackGui
|
||||
|
||||
case MinimalWithOrder:
|
||||
m_columns.addColumn(CColumn::orderColumn());
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case Minimal:
|
||||
{
|
||||
m_columns.addColumn(CColumn::standardString("key", CDistributor::IndexDbStringKey));
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace BlackGui
|
||||
{
|
||||
case DetailedWithOrder:
|
||||
m_columns.addColumn(CColumn::orderColumn());
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case Detailed:
|
||||
{
|
||||
m_columns.addColumn(CColumn("time", CStatusMessage::IndexUtcTimestamp, new CDateTimeFormatter(CDateTimeFormatter::formatHmsz())));
|
||||
@@ -94,7 +94,7 @@ namespace BlackGui
|
||||
break;
|
||||
case SimplifiedWithOrder:
|
||||
m_columns.addColumn(CColumn::orderColumn());
|
||||
Q_FALLTHROUGH();
|
||||
[[fallthrough]];
|
||||
case Simplified:
|
||||
{
|
||||
m_columns.addColumn(CColumn("time", CStatusMessage::IndexUtcTimestamp, new CDateTimeFormatter(CDateTimeFormatter::formatHmsz())));
|
||||
|
||||
Reference in New Issue
Block a user