summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-08-05 11:56:47 +0200
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 13:06:41 +0300
commitb225946bc03b3defee7f8c0926788d38d901415e (patch)
treeef11cb1ed2574ed6690c9176cb227c53bb9c924e
parent5b890cd81b652584a151ba418478074e34f61c41 (diff)
downloadqt4-tools-b225946bc03b3defee7f8c0926788d38d901415e.tar.gz
QXmlStreamReader: avoid unnecessary detaching
Reviewed-by: Markus Goetz Task-number: QTBUG-12259 (cherry picked from commit c7fcd56bd3e150e57230ea1445bf4286b3f3fabe)
-rw-r--r--src/corelib/xml/qxmlstream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/xml/qxmlstream.cpp b/src/corelib/xml/qxmlstream.cpp
index 12db36a0dc..e8bff9ee05 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."));