Skip to content

Commit

Permalink
Replace deprecated constants
Browse files Browse the repository at this point in the history
  • Loading branch information
daleglass committed Jun 18, 2022
1 parent 6c57ee0 commit 1bede12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assignment-client/src/avatars/MixerAvatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion tools/nitpick/src/AWSInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tools/nitpick/src/TestCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ const std::map<QString, ProfileCategory> propertyToProfileCategory = [](){
}();

TestFilter::TestFilter(const QString& filterString) {
auto filterParts = filterString.split(".", QString::SkipEmptyParts);
auto filterParts = filterString.split(".", Qt::SkipEmptyParts);
for (const auto& filterPart : filterParts) {
QList<QString> allowedVariants = filterPart.split(",", QString::SkipEmptyParts);
QList<QString> allowedVariants = filterPart.split(",", Qt::SkipEmptyParts);
if (allowedVariants.empty()) {
continue;
}
Expand Down

0 comments on commit 1bede12

Please sign in to comment.