Merge pull request #12847 from Chocobo1/deprecated

Don't use deprecated Qt function options
This commit is contained in:
Mike Tzou
2020-05-18 11:41:11 +08:00
committed by GitHub
3 changed files with 17 additions and 15 deletions

View File

@@ -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;