aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-07 10:16:42 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-13 10:20:47 +0200
commitec5a625b1f81d03c813bcce168549bfbb7b8f314 (patch)
tree0441d2bd1bd50c789eb39ff97501fee6398bbcb0 /sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
parent85c214435cb6de0ec056956413c8c387ad59e9cc (diff)
Port from qAsConst() to std::as_const()
qAsConst() will be deprecated in Qt 6.5. Task-number: QTBUG-99313 Change-Id: Ibc7c2e26b0e52cec905a406ef081e0b99bcce50f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index 4549d62a0..ca5fafd2a 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -308,7 +308,7 @@ bool parse(const QByteArrayList &clangArgs, bool addCompilerSupportArguments,
debug.nospace();
debug << "Errors in "
<< QDir::toNativeSeparators(QFile::decodeName(clangArgs.constLast())) << ":\n";
- for (const Diagnostic &diagnostic : qAsConst(diagnostics))
+ for (const Diagnostic &diagnostic : std::as_const(diagnostics))
debug << diagnostic << '\n';
}