Merge pull request #8471 from luis-pereira/use-qstring-ref

Don't create temporary substrings
This commit is contained in:
Vladimir Golovnev
2018-02-28 10:44:59 +03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -302,7 +302,7 @@ bool AutoDownloadRule::matches(const QString &articleTitle) const
QRegularExpression reg(cachedRegex(partialPattern1));
if (ep.endsWith('-')) { // Infinite range
int epOurs = ep.left(ep.size() - 1).toInt();
int epOurs = ep.leftRef(ep.size() - 1).toInt();
// Extract partial match from article and compare as digits
matcher = reg.match(articleTitle);