summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-08-05 09:56:47 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:06:41 (GMT)
commitb225946bc03b3defee7f8c0926788d38d901415e (patch)
treeef11cb1ed2574ed6690c9176cb227c53bb9c924e /src/corelib
parent5b890cd81b652584a151ba418478074e34f61c41 (diff)
downloadQt-b225946bc03b3defee7f8c0926788d38d901415e.zip
Qt-b225946bc03b3defee7f8c0926788d38d901415e.tar.gz
Qt-b225946bc03b3defee7f8c0926788d38d901415e.tar.bz2
QXmlStreamReader: avoid unnecessary detaching
Reviewed-by: Markus Goetz Task-number: QTBUG-12259 (cherry picked from commit c7fcd56bd3e150e57230ea1445bf4286b3f3fabe)
Diffstat (limited to 'src/corelib')
-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 12db36a..e8bff9e 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."));