summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-07-22 22:24:41 -0700
committerThiago Macieira <thiago.macieira@intel.com>2014-07-25 01:50:55 +0200
commitc94bf2cfbae06878857f2018367a1c2dff399d80 (patch)
tree695a92a52e79f9480ba87a54703ccef6ca85f052
parent66dbee12785d5474ec5ee787675eea6b271e6d2c (diff)
Use the stateless UTF-8 encoder in QStringRef::toUtf8
QString::toUtf8 already does it. I guess I forgot to update this part in d51130cc3a00df8147e2eb0799e06865c901c6e0. Change-Id: I83feafcb0383758f7e64d5142f57a7ae6a2ff351 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
-rw-r--r--src/corelib/tools/qstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index a018b81c38..83f1bac2ef 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -9516,7 +9516,7 @@ QByteArray QStringRef::toUtf8() const
if (isNull())
return QByteArray();
- return QUtf8::convertFromUnicode(constData(), length(), 0);
+ return QUtf8::convertFromUnicode(constData(), length());
}
/*!