diff --git a/src/corelib/text/qstringconverter.cpp b/src/corelib/text/qstringconverter.cpp index 51a9c8fb91..8e314ffd34 100644 --- a/src/corelib/text/qstringconverter.cpp +++ b/src/corelib/text/qstringconverter.cpp @@ -390,8 +390,8 @@ QByteArray QUtf8::convertFromUnicode(const QChar *uc, qsizetype len) break; do { - ushort uc = *src++; - int res = QUtf8Functions::toUtf8(uc, dst, src, end); + ushort u = *src++; + int res = QUtf8Functions::toUtf8(u, dst, src, end); if (res < 0) { // encoding error - append '?' *dst++ = '?';