MusixmatchCoverProvider: Use static QRegularExpression
This commit is contained in:
parent
d230dd7365
commit
e8471bcc66
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue