Clean up usage of static keyword

They are either misused or redundant, so remove it.
This commit is contained in:
Chocobo1 2022-05-27 03:46:14 +08:00
parent c2c17fd053
commit 73faf67084
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
14 changed files with 106 additions and 138 deletions

View file

@ -457,7 +457,7 @@ QString Utils::Misc::parseHtmlLinks(const QString &rawText)
result.replace(reURL, u"\\1<a href=\"\\2\">\\2</a>"_qs);
// Capture links without scheme
static const QRegularExpression reNoScheme(u"<a\\s+href=\"(?!https?)([a-zA-Z0-9\\?%=&/_\\.-:#]+)\\s*\">"_qs);
const QRegularExpression reNoScheme(u"<a\\s+href=\"(?!https?)([a-zA-Z0-9\\?%=&/_\\.-:#]+)\\s*\">"_qs);
result.replace(reNoScheme, u"<a href=\"http://\\1\">"_qs);
// to preserve plain text formatting