mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-04 10:54:35 +00:00
Don't use deprecated QRegularExpression option
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]
This commit is contained in:
parent
5470ae8c1a
commit
7c8846fc53
@ -67,7 +67,7 @@ bool Item::isValidPath(const QString &path)
|
|||||||
{
|
{
|
||||||
static const QRegularExpression re(
|
static const QRegularExpression re(
|
||||||
QString(R"(\A[^\%1]+(\%1[^\%1]+)*\z)").arg(Item::PathSeparator)
|
QString(R"(\A[^\%1]+(\%1[^\%1]+)*\z)").arg(Item::PathSeparator)
|
||||||
, QRegularExpression::DontCaptureOption | QRegularExpression::OptimizeOnFirstUsageOption);
|
, QRegularExpression::DontCaptureOption);
|
||||||
|
|
||||||
if (path.isEmpty() || !re.match(path).hasMatch()) {
|
if (path.isEmpty() || !re.match(path).hasMatch()) {
|
||||||
qDebug() << "Incorrect RSS Item path:" << path;
|
qDebug() << "Incorrect RSS Item path:" << path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user