From 1bede12b37081ea907fffb809026f50fc21d7c1a Mon Sep 17 00:00:00 2001 From: Dale Glass Date: Sat, 18 Jun 2022 20:24:25 +0200 Subject: [PATCH] Replace deprecated constants --- assignment-client/src/avatars/MixerAvatar.cpp | 2 +- tools/nitpick/src/AWSInterface.cpp | 2 +- tools/nitpick/src/TestCreator.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assignment-client/src/avatars/MixerAvatar.cpp b/assignment-client/src/avatars/MixerAvatar.cpp index f3d7bb8995..30509aaed8 100644 --- a/assignment-client/src/avatars/MixerAvatar.cpp +++ b/assignment-client/src/avatars/MixerAvatar.cpp @@ -154,7 +154,7 @@ bool MixerAvatar::validateFSTHash(const QString& publicKey) const { } QByteArray MixerAvatar::canonicalJson(const QString fstFile) { - QStringList fstLines = fstFile.split("\n", QString::SkipEmptyParts); + QStringList fstLines = fstFile.split("\n", Qt::SkipEmptyParts); static const QString fstKeywordsReg { "(marketplaceID|itemDescription|itemCategories|itemArtist|itemLicenseUrl|limitedRun|itemName|" "filename|texdir|script|editionNumber|certificateID)" diff --git a/tools/nitpick/src/AWSInterface.cpp b/tools/nitpick/src/AWSInterface.cpp index 4efafa4a2a..0bb402c37f 100644 --- a/tools/nitpick/src/AWSInterface.cpp +++ b/tools/nitpick/src/AWSInterface.cpp @@ -43,7 +43,7 @@ void AWSInterface::createWebPageFromResults(const QString& testResults, QStringList parts = testResults.split('/'); QString zipFilename = parts[parts.length() - 1]; - QStringList zipFolderNameParts = zipFilename.split(QRegExp("[\\(\\)\\[\\]]"), QString::SkipEmptyParts); + QStringList zipFolderNameParts = zipFilename.split(QRegExp("[\\(\\)\\[\\]]"), Qt::SkipEmptyParts); if (!QRegularExpression("TestResults--\\d{4}(-\\d\\d){2}_\\d\\d(-\\d\\d){2}").match(zipFolderNameParts[0]).hasMatch() || !QRegularExpression("\\w").match(zipFolderNameParts[1]).hasMatch() || // build (local, build number or PR number) diff --git a/tools/nitpick/src/TestCreator.cpp b/tools/nitpick/src/TestCreator.cpp index baecb3e173..571e30aeaa 100644 --- a/tools/nitpick/src/TestCreator.cpp +++ b/tools/nitpick/src/TestCreator.cpp @@ -532,9 +532,9 @@ const std::map propertyToProfileCategory = [](){ }(); TestFilter::TestFilter(const QString& filterString) { - auto filterParts = filterString.split(".", QString::SkipEmptyParts); + auto filterParts = filterString.split(".", Qt::SkipEmptyParts); for (const auto& filterPart : filterParts) { - QList allowedVariants = filterPart.split(",", QString::SkipEmptyParts); + QList allowedVariants = filterPart.split(",", Qt::SkipEmptyParts); if (allowedVariants.empty()) { continue; }