diff options
author | Daniel Smith <daniel.smith@qt.io> | 2023-04-11 12:51:59 +0200 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2023-04-17 09:07:21 +0000 |
commit | 7704cea87e6f77aeaac3c875e83f92011115de9c (patch) | |
tree | e10dd70152b18267e29164953b010aa2f8624018 | |
parent | 9d8a6a095e9091cc5ca2693e053ff2883c683f79 (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.cpp | 2 |
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); |