QStringConverter: don't shadow variables

Change-Id: I3c209585de2a7599f1cd4e58c1d3b3501425b903
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Ahmad Samir 2022-12-19 17:12:44 +02:00
parent 78db5cb643
commit 8f0c366087

View File

@ -503,7 +503,6 @@ QByteArray QUtf8::convertFromUnicode(QStringView in, QStringConverterBase::State
char *QUtf8::convertFromUnicode(char *out, QStringView in, QStringConverter::State *state)
{
Q_ASSERT(state);
const QChar *uc = in.data();
qsizetype len = in.size();
if (!len)
return out;
@ -521,7 +520,7 @@ char *QUtf8::convertFromUnicode(char *out, QStringView in, QStringConverter::Sta
};
uchar *cursor = reinterpret_cast<uchar *>(out);
const char16_t *src = reinterpret_cast<const char16_t *>(uc);
const char16_t *src = in.utf16();
const char16_t *const end = src + len;
if (!(state->flags & QStringDecoder::Flag::Stateless)) {