summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-08 14:51:23 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-12 14:58:16 +0000
commit673cb83599cae382af4721ebda55b3479ce64bde (patch)
treee9e7c4195290ad0a8b90a83f7f04275122153b62 /src/gui/kernel
parent74befbe39812f6a1018efc1b7bb1e5987c015d79 (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. Change-Id: I10915a06fc9442039c192486a55e48083da7c839 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit e809d4e3ccdb713407253150d82d8634dc3cf97e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions