Use the stateless UTF-8 encoder in QStringRef::toUtf8
QString::toUtf8 already does it. I guess I forgot to update this part in
d51130cc3a
.
Change-Id: I83feafcb0383758f7e64d5142f57a7ae6a2ff351
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
66dbee1278
commit
c94bf2cfba
@ -9516,7 +9516,7 @@ QByteArray QStringRef::toUtf8() const
|
||||
if (isNull())
|
||||
return QByteArray();
|
||||
|
||||
return QUtf8::convertFromUnicode(constData(), length(), 0);
|
||||
return QUtf8::convertFromUnicode(constData(), length());
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user