diff options
Diffstat (limited to 'tools/qscxmlc/scxmlcppdumper.cpp')
-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('_'); } } |