summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qringbuffer.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-16 10:09:29 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-03 11:22:53 +0000
commitc953e5c41750ec886880cfb2cedb89f2886e5424 (patch)
tree703d4e90ef1b08eb4efecdae8e8b902f2970ef3f /src/corelib/tools/qringbuffer.cpp
parentce14b6c2d3463f73d2e266af2dd97b942f2af109 (diff)
QByteArray: avoid detach() in a no-op replace()
When the the replacement has the same size as the replacee, but that size is zero, the whole operation is a no-op, and there's no need to detach(). [ChangeLog][QtCore][QByteArray] A replace(pos, n, after) call no longer detach()es when n == after.size() == 0. Pick-to: 6.3 6.2 Change-Id: I1e8d7c7fb6383f8bfea3212e49fca8a128535564 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qringbuffer.cpp')
0 files changed, 0 insertions, 0 deletions