From 67778198de7175172fa4a024c1f186528406795e Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 21 Jun 2021 19:55:47 +0200 Subject: [PATCH] Formatting --- src/playlistparsers/playlistparser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/playlistparsers/playlistparser.cpp b/src/playlistparsers/playlistparser.cpp index 32d2b7967..3926c3359 100644 --- a/src/playlistparsers/playlistparser.cpp +++ b/src/playlistparsers/playlistparser.cpp @@ -136,9 +136,9 @@ 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,8 +147,9 @@ 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;