diff options
Diffstat (limited to 'src/tools/uic/uic.cpp')
-rw-r--r-- | src/tools/uic/uic.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/uic/uic.cpp b/src/tools/uic/uic.cpp index 1b10e1d722b..39bc5f4e26f 100644 --- a/src/tools/uic/uic.cpp +++ b/src/tools/uic/uic.cpp @@ -108,10 +108,10 @@ static inline bool isCppCommentChar(QChar c) return c == u'/' || c == u'*'; } -static int leadingCppCommentCharCount(QStringView s) +static qsizetype leadingCppCommentCharCount(QStringView s) { - int i = 0; - for (const int size = s.size(); i < size && isCppCommentChar(s.at(i)); ++i) { + qsizetype i = 0; + for (const qsizetype size = s.size(); i < size && isCppCommentChar(s.at(i)); ++i) { } return i; } @@ -122,7 +122,7 @@ void Uic::writeCopyrightHeaderPython(const DomUI *ui) const if (!comment.isEmpty()) { const auto lines = QStringView{comment}.split(u'\n'); for (const auto &line : lines) { - if (const int leadingCommentChars = leadingCppCommentCharCount(line)) { + if (const auto leadingCommentChars = leadingCppCommentCharCount(line)) { out << language::repeat(leadingCommentChars, '#') << line.right(line.size() - leadingCommentChars); } else { |