mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 10:36:45 +01:00
Formatting
This commit is contained in:
parent
ebfd8cd6f7
commit
67778198de
@ -136,10 +136,10 @@ ParserBase *PlaylistParser::ParserForExtension(const QString &suffix) const {
|
||||
ParserBase *PlaylistParser::ParserForMimeType(const QString &mime_type) const {
|
||||
|
||||
for (ParserBase *p : parsers_) {
|
||||
if (!p->mime_type().isEmpty() &&
|
||||
(QString::compare(p->mime_type(), mime_type, Qt::CaseInsensitive) == 0))
|
||||
if (!p->mime_type().isEmpty() && (QString::compare(p->mime_type(), mime_type, Qt::CaseInsensitive) == 0)) {
|
||||
return p;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
}
|
||||
@ -147,9 +147,10 @@ ParserBase *PlaylistParser::ParserForMimeType(const QString &mime_type) const {
|
||||
ParserBase *PlaylistParser::ParserForMagic(const QByteArray &data, const QString &mime_type) const {
|
||||
|
||||
for (ParserBase *p : parsers_) {
|
||||
if ((!mime_type.isEmpty() && mime_type == p->mime_type()) || p->TryMagic(data))
|
||||
if ((!mime_type.isEmpty() && mime_type == p->mime_type()) || p->TryMagic(data)) {
|
||||
return p;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user