Use C++17 fallthrough

This commit is contained in:
Jonas Kvinge
2022-07-26 20:37:06 +02:00
parent 33581fa61d
commit 98682a2da9
10 changed files with 15 additions and 16 deletions

View File

@@ -186,14 +186,14 @@ QString AlbumCoverLoader::CoverFilenameFromSource(const Song::Source source, con
filename = album_id + "-" + cover_url.fileName();
break;
}
// fallthrough
[[fallthrough]];
case Song::Source_Subsonic:
case Song::Source_Qobuz:
if (!album_id.isEmpty()) {
filename = album_id;
break;
}
// fallthrough
[[fallthrough]];
case Song::Source_Collection:
case Song::Source_LocalFile:
case Song::Source_CDDA: