mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-15 10:14:43 +01:00
Use variable
This commit is contained in:
parent
e90b5e63e5
commit
2436c87372
@ -205,7 +205,8 @@ void QobuzStreamURLRequest::StreamURLReceived() {
|
||||
|
||||
Song::FileType filetype(Song::FileType_Unknown);
|
||||
QMimeDatabase mimedb;
|
||||
for (const QString &suffix : mimedb.mimeTypeForName(mimetype.toUtf8()).suffixes()) {
|
||||
QStringList suffixes = mimedb.mimeTypeForName(mimetype.toUtf8()).suffixes();
|
||||
for (const QString &suffix : suffixes) {
|
||||
filetype = Song::FiletypeByExtension(suffix);
|
||||
if (filetype != Song::FileType_Unknown) break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user