diff options
Diffstat (limited to 'src/gui/text/qcssparser.cpp')
-rw-r--r-- | src/gui/text/qcssparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qcssparser.cpp b/src/gui/text/qcssparser.cpp index 50c13d41f69..0896453ca89 100644 --- a/src/gui/text/qcssparser.cpp +++ b/src/gui/text/qcssparser.cpp @@ -2189,9 +2189,9 @@ QString Scanner::preprocess(const QString &input, bool *hasEscapeSequences) hexCount = qMin(hexCount, 6); bool ok = false; - ushort code = output.midRef(hexStart, hexCount).toUShort(&ok, 16); + const char16_t code = output.midRef(hexStart, hexCount).toUShort(&ok, 16); if (ok) { - output.replace(hexStart - 1, hexCount + 1, QChar(code)); + output.replace(hexStart - 1, hexCount + 1, code); i = hexStart; } else { i = hexStart; |