diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-08 14:51:23 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-12 02:03:15 +0100 |
commit | e809d4e3ccdb713407253150d82d8634dc3cf97e (patch) | |
tree | b6a97086f27077efe0ca79b2a9fd65ba007525ab /.cmake.conf | |
parent | 1abaf9d5d6ea9c6554362e851903ddd214a6f659 (diff) |
QFlatMap: fix pointless reallocations on repeated range-insert()s
When looping over range-insert(), the repeated shrink_to_fit() calls
would cause cause reserved (or geometrically-grown) capacity to be
shed, breaking the underlying container's growth strategy.
Fix by not shedding excess capacity.
Pick-to: 6.3 6.2
Change-Id: I10915a06fc9442039c192486a55e48083da7c839
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to '.cmake.conf')
0 files changed, 0 insertions, 0 deletions