diff --git a/src/covermanager/musixmatchcoverprovider.cpp b/src/covermanager/musixmatchcoverprovider.cpp index 998b631f1..b870cdbe2 100644 --- a/src/covermanager/musixmatchcoverprovider.cpp +++ b/src/covermanager/musixmatchcoverprovider.cpp @@ -128,7 +128,8 @@ void MusixmatchCoverProvider::HandleSearchReply(QNetworkReply *reply, const int return; } - if (content_json.contains(QRegularExpression(QStringLiteral("<[^>]*>")))) { // Make sure it's not HTML code. + static const QRegularExpression regex_html_tag(QStringLiteral("<[^>]*>")); + if (content_json.contains(regex_html_tag)) { // Make sure it's not HTML code. emit SearchFinished(id, results); return; }