diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2010-08-05 11:56:47 +0200 |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-08-11 14:05:43 +0200 |
commit | c7fcd56bd3e150e57230ea1445bf4286b3f3fabe (patch) | |
tree | 9974bda08fdeae59b95c89ec204b2d4c20ca84a3 /src/corelib/xml | |
parent | a77dbcdbb7022cc754ba87aea9a4fc471d1e4495 (diff) |
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 853f311dee..91c3a195ae 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.")); |