mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -07:00
Replace single-character string with character literal
Also remove unnecessary dynamic allocation.
This commit is contained in:
parent
7e3cf99bb9
commit
0217d5b4c0
32 changed files with 96 additions and 96 deletions
|
@ -675,7 +675,7 @@ void AutomatedRssDownloader::updateMustLineValidity()
|
|||
if (isRegex)
|
||||
tokens << text;
|
||||
else
|
||||
foreach (const QString &token, text.split("|"))
|
||||
foreach (const QString &token, text.split('|'))
|
||||
tokens << Utils::String::wildcardToRegex(token);
|
||||
|
||||
foreach (const QString &token, tokens) {
|
||||
|
@ -713,7 +713,7 @@ void AutomatedRssDownloader::updateMustNotLineValidity()
|
|||
if (isRegex)
|
||||
tokens << text;
|
||||
else
|
||||
foreach (const QString &token, text.split("|"))
|
||||
foreach (const QString &token, text.split('|'))
|
||||
tokens << Utils::String::wildcardToRegex(token);
|
||||
|
||||
foreach (const QString &token, tokens) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue