mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Clean up usage of static
keyword
They are either misused or redundant, so remove it.
This commit is contained in:
parent
c2c17fd053
commit
73faf67084
14 changed files with 106 additions and 138 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue