From 7704cea87e6f77aeaac3c875e83f92011115de9c Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Tue, 11 Apr 2023 12:51:59 +0200 Subject: 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 --- tools/compareresults/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); -- cgit v1.2.3