Add fallthrough comments and remove -Wimplicit-fallthrough=0

Signed-off-by: Jonas Kvinge <jonas@jkvinge.net>
This commit is contained in:
Jonas Kvinge
2019-09-16 21:20:12 +02:00
parent cf9f48d8da
commit bdc089290d
11 changed files with 22 additions and 11 deletions

View File

@@ -1239,10 +1239,17 @@ CollectionItem *CollectionModel::ItemFromSong(GroupBy type, bool signal, bool cr
item->sort_text = SortTextForNumber(year) + " ";
break;
}
case GroupBy_Composer: if (item->key.isNull()) item->key = s.composer();
case GroupBy_Performer: if (item->key.isNull()) item->key = s.performer();
case GroupBy_Grouping: if (item->key.isNull()) item->key = s.grouping();
case GroupBy_Genre: if (item->key.isNull()) item->key = s.genre();
case GroupBy_Composer:
if (item->key.isNull()) item->key = s.composer();
// fallthrough
case GroupBy_Performer:
if (item->key.isNull()) item->key = s.performer();
// fallthrough
case GroupBy_Grouping:
if (item->key.isNull()) item->key = s.grouping();
// fallthrough
case GroupBy_Genre:
if (item->key.isNull()) item->key = s.genre();
item->display_text = TextOrUnknown(item->key);
item->sort_text = SortTextForArtist(item->key);
break;