summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-08-05 09:56:47 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-08-11 12:05:43 (GMT)
commitc7fcd56bd3e150e57230ea1445bf4286b3f3fabe (patch)
tree9974bda08fdeae59b95c89ec204b2d4c20ca84a3
parenta77dbcdbb7022cc754ba87aea9a4fc471d1e4495 (diff)
downloadQt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.zip
Qt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.tar.gz
Qt-c7fcd56bd3e150e57230ea1445bf4286b3f3fabe.tar.bz2
QXmlStreamReader: avoid unnecessary detaching
Reviewed-by: Markus Goetz Task-number: QTBUG-12259
-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 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."));