From 7c8846fc53803d104e1d6fdd3efeb77b06307545 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 16 May 2020 21:05:15 +0800 Subject: [PATCH] Don't use deprecated QRegularExpression option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following is the warning from compiler: rss_item.cpp:70:79: warning: ‘QRegularExpression::OptimizeOnFirstUsageOption’ is deprecated: This option does not have any effect since Qt 5.12 [-Wdeprecated-declarations] --- src/base/rss/rss_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/rss/rss_item.cpp b/src/base/rss/rss_item.cpp index 1d655efa8..37d55102e 100644 --- a/src/base/rss/rss_item.cpp +++ b/src/base/rss/rss_item.cpp @@ -67,7 +67,7 @@ bool Item::isValidPath(const QString &path) { static const QRegularExpression re( QString(R"(\A[^\%1]+(\%1[^\%1]+)*\z)").arg(Item::PathSeparator) - , QRegularExpression::DontCaptureOption | QRegularExpression::OptimizeOnFirstUsageOption); + , QRegularExpression::DontCaptureOption); if (path.isEmpty() || !re.match(path).hasMatch()) { qDebug() << "Incorrect RSS Item path:" << path;