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

@@ -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));