diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-04-25 17:52:14 +0200 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-04-26 17:07:40 +0200 |
commit | 5e76c2acff2c70f2893306b16aeba230f3d6114a (patch) | |
tree | c0cb4f4c08ec7db2d71f2b60f6cd9744c757ed62 /tests/auto/corelib/text | |
parent | 38bba2a87c6c5c2b8100870add6d0d7ad559e669 (diff) |
Change QList's insert() and emplace() to always invalidate [pos, end())
Drop the "move left if pos <= size / 2" path in favor of reference
stability of insert and emplace operations
Leave the insert(0, ...) and emplace(0, ...) as special cases for
prepend optimization as invalidating [begin, end()) practically means
that we can reallocate behind the scenes
Doing this also simplifies the code a bit
Task-number: QTBUG-93019
Pick-to: dev 6.0 6.1
Change-Id: I7c248f96d687e94a6a38f81ade901619ff2b4733
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/text')
0 files changed, 0 insertions, 0 deletions