diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-15 12:20:44 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-15 14:32:05 +0200 |
commit | e18f1b40b23352d09269f7451711529df1277653 (patch) | |
tree | 59f13870440712978a9d2cac2e3c297d1f8de2f9 /tools | |
parent | fe1f47ba326d47c35fa14f6837091d77456f5ec2 (diff) |
Fix compilation with explicit QChar(*int*) ctors
The QChar ctors from integral non-char types are under
consideration for adding explicit.
Fix users of these ctors ahead of the change.
Change-Id: I3f3480336ba30a368034bb15b67ada854115e374
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qscxmlc/scxmlcppdumper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp index 89a403b..4f62039 100644 --- a/tools/qscxmlc/scxmlcppdumper.cpp +++ b/tools/qscxmlc/scxmlcppdumper.cpp @@ -676,11 +676,11 @@ QString CppDumper::mangleIdentifier(const QString &str) } for (int ei = str.length(); i != ei; ++i) { - auto c = str.at(i).unicode(); + auto c = str.at(i); if ((c >= QLatin1Char('0') && c <= QLatin1Char('9')) || isNonDigit(c)) { mangled += c; } else { - mangled += QLatin1String("_0x") + QString::number(c, 16) + QLatin1Char('_'); + mangled += QLatin1String("_0x") + QString::number(c.unicode(), 16) + QLatin1Char('_'); } } |