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:
Thiago Macieira 2014-07-22 22:24:41 -07:00
parent 66dbee1278
commit c94bf2cfba

View File

@ -9516,7 +9516,7 @@ QByteArray QStringRef::toUtf8() const
if (isNull())
return QByteArray();
return QUtf8::convertFromUnicode(constData(), length(), 0);
return QUtf8::convertFromUnicode(constData(), length());
}
/*!