path: root/src/corelib
diff options
authorThiago Macieira <>2013-04-11 15:57:18 -0700
committerThe Qt Project <>2013-04-16 19:45:11 +0200
commit2ddbba9ba9709090de7ffbd00d0127cb3cca0869 (patch)
tree0dedfea144875f291c8512798e1ae13f3bc5ce0d /src/corelib
parent0d1ab4e66797c57d31c8b56319219f4248a7c029 (diff)
Make QBuffer unbuffered
Sounds non-sense but it means that QIODevice will not try to copy from QBuffer's buffer onto its own. Eventually we should figure out to make QBuffer use the QIODevice::buffer member that is already there and avoid all of this mistake. Something for the future. Change-Id: Ib700c9cadb46cec20a8ea5a69a488ded7104ac76 Reviewed-by: Oswald Buddenhagen <> Reviewed-by: Robin Burchell <>
Diffstat (limited to 'src/corelib')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qbuffer.cpp b/src/corelib/io/qbuffer.cpp
index 4b7edd8481..5748c5437a 100644
--- a/src/corelib/io/qbuffer.cpp
+++ b/src/corelib/io/qbuffer.cpp
@@ -334,7 +334,7 @@ bool QBuffer::open(OpenMode flags)
if ((flags & Truncate) == Truncate)
- return QIODevice::open(flags);
+ return QIODevice::open(flags | QIODevice::Unbuffered);