aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Smith <daniel.smith@qt.io>2023-04-11 12:51:59 +0200
committerDaniel Smith <Daniel.Smith@qt.io>2023-04-17 09:07:21 +0000
commit7704cea87e6f77aeaac3c875e83f92011115de9c (patch)
treee10dd70152b18267e29164953b010aa2f8624018
parent9d8a6a095e9091cc5ca2693e053ff2883c683f79 (diff)
Replace qAsConst with std::as_const
QT_NO_AS_CONST is now defined for all modules, so this needs to be updated in qmlbench tooling. Change-Id: I88a8215970cf2860f31135b0e4af377a702dfe0f Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
-rw-r--r--tools/compareresults/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/compareresults/main.cpp b/tools/compareresults/main.cpp
index 56da1a5..c387be7 100644
--- a/tools/compareresults/main.cpp
+++ b/tools/compareresults/main.cpp
@@ -146,7 +146,7 @@ int main(int argc, char **argv)
QVector<Result> differencesInPercent;
- for (const QString &test: qAsConst(tests)) {
+ for (const QString &test: std::as_const(tests)) {
const QJsonObject baseLineResult = baseLine[test].toObject();
const QJsonObject newResult = newResults[test].toObject();
const QString testName = trimPrefix(test, prefix);