aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-10 13:58:59 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-10-13 10:20:47 +0200
commitbc67403cb39d94f1ae2b96bd0b86947df0783182 (patch)
treed7efd7be3b501a9185fbd321592065e7aea69222 /sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
parentec5a625b1f81d03c813bcce168549bfbb7b8f314 (diff)
shiboken6: Port some loop variables to qsizetype
Where possible, used range-based for. Otherwise, use qsizetype for loop variables. Change-Id: I4773bee8468ce73722656ec73845369b7d40d4cd 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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index ca5fafd2a..9762b352f 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -213,9 +213,9 @@ static QByteArray msgCreateTranslationUnit(const QByteArrayList &clangArgs, unsi
{
QByteArray result = "clang_parseTranslationUnit2(0x";
result += QByteArray::number(flags, 16);
- const int count = clangArgs.size();
+ const auto count = clangArgs.size();
result += ", cmd[" + QByteArray::number(count) + "]=";
- for (int i = 0; i < count; ++i) {
+ for (qsizetype i = 0; i < count; ++i) {
const QByteArray &arg = clangArgs.at(i);
if (i)
result += ' ';