diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2010-08-05 09:56:47 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-08-11 12:05:43 (GMT) |
commit | c7fcd56bd3e150e57230ea1445bf4286b3f3fabe (patch) | |
tree | 9974bda08fdeae59b95c89ec204b2d4c20ca84a3 /src/corelib/xml | |
parent | a77dbcdbb7022cc754ba87aea9a4fc471d1e4495 (diff) | |
download | Qt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.zip Qt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.tar.gz Qt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.tar.bz2 |
QXmlStreamReader: avoid unnecessary detaching
Reviewed-by: Markus Goetz
Task-number: QTBUG-12259
Diffstat (limited to 'src/corelib/xml')
-rw-r--r-- | src/corelib/xml/qxmlstream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp index 853f311..91c3a19 100644 --- a/src/corelib/xml/qxmlstream.cpp +++ b/src/corelib/xml/qxmlstream.cpp @@ -1523,7 +1523,7 @@ ushort QXmlStreamReaderPrivate::getChar_helper() decoder = codec->makeDecoder(); } - decoder->toUnicode(&readBuffer, rawReadBuffer.data(), nbytesread); + decoder->toUnicode(&readBuffer, rawReadBuffer.constData(), nbytesread); if(lockEncoding && decoder->hasFailure()) { raiseWellFormedError(QXmlStream::tr("Encountered incorrectly encoded content.")); |