QRingBuffer: remove QByteArray::resize()-shrinks work-around

QByteArray::resize() is now documented to not shrink capacity(), so
remove the extra reserve(0) work-around.

Change-Id: I3d5d944b9f01f8f84b31599548773198903aad4c
Reviewed-by: Alex Trotsenko <alex1973tr@gmail.com>
bb10
Marc Mutz 2021-12-14 23:20:39 +01:00
parent 3552cf48e8
commit 6d4102729f
1 changed files with 0 additions and 1 deletions

View File

@ -82,7 +82,6 @@ QByteArray QRingChunk::toByteArray() &&
headOffset = 0;
}
chunk.reserve(0); // avoid that resizing needlessly reallocates
chunk.resize(tailOffset);
}