diff options
Diffstat (limited to 'tools/qscxmlc/scxmlcppdumper.cpp')
-rw-r--r-- | tools/qscxmlc/scxmlcppdumper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp index 6154446..5e19d33 100644 --- a/tools/qscxmlc/scxmlcppdumper.cpp +++ b/tools/qscxmlc/scxmlcppdumper.cpp @@ -42,7 +42,7 @@ QString cEscape(const QString &str) { QString res; int lastI = 0; - for (int i = 0; i < str.length(); ++i) { + for (int i = 0; i < str.size(); ++i) { QChar c = str.at(i); if (c < QLatin1Char(' ') || c == QLatin1Char('\\') || c == QLatin1Char('\"')) { res.append(str.mid(lastI, i - lastI)); @@ -137,7 +137,7 @@ static void generateList(QString &out, std::function<QString(int)> next) if (i != 0) line += QLatin1Char(','); - if (line.length() + nr.length() + 1 > maxLineLength) { + if (line.size() + nr.size() + 1 > maxLineLength) { out += line + QLatin1Char('\n'); line.clear(); } else if (i != 0) { @@ -652,7 +652,7 @@ QString CppDumper::mangleIdentifier(const QString &str) } } - for (int ei = str.length(); i != ei; ++i) { + for (int ei = str.size(); i != ei; ++i) { auto c = str.at(i); if ((c >= QLatin1Char('0') && c <= QLatin1Char('9')) || isNonDigit(c)) { mangled += c; |