diff --git a/src/corelib/tools/qringbuffer.cpp b/src/corelib/tools/qringbuffer.cpp index 72c56a20f6..96ba5c2b44 100644 --- a/src/corelib/tools/qringbuffer.cpp +++ b/src/corelib/tools/qringbuffer.cpp @@ -82,7 +82,6 @@ QByteArray QRingChunk::toByteArray() && headOffset = 0; } - chunk.reserve(0); // avoid that resizing needlessly reallocates chunk.resize(tailOffset); }