QStringConverter: don't shadow variables
Change-Id: I3c209585de2a7599f1cd4e58c1d3b3501425b903 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
78db5cb643
commit
8f0c366087
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user