summaryrefslogtreecommitdiffstats
path: root/src/corelib/debug_script.py
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-01-02 08:31:21 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-02-04 19:07:52 +0100
commit2d1b3028673493cb144060cbec49b1b95f4188d2 (patch)
tree7c457ffc2e261be2484500b6d36a0c3f4c4d1465 /src/corelib/debug_script.py
parent0b7b02cdb43a4d9a29eba5804b82461bed70a86c (diff)
Revert "Optimize QSet::unite"
This reverts commit 92acc94fa98d19929d28feb5d543acf8c50c2290. The change broke QSet ordering guarantees: The documentation clearly states that each item from `other` that isn't already in `*this` is inserted ("STL insertion behavior"). Swapping *this and other breaks this. Independent of STL vs. Qt insertion behavior, making the picking of elements from containers "random" in the sense that the size of the container is now important, and not merely LHS vs. RHS, is a bad idea. [ChangeLog][QtCore][QSet] Fixed a regression in unite() that caused equivalent elements of `*this` to be overwritten by elements of `other` if `other.size()` was larger than `this->size()`. Pick-to: 6.9 6.8 Fixes: QTBUG-132500 Change-Id: Ia636b62325139d618b5467a643ff710716324296 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/debug_script.py')
0 files changed, 0 insertions, 0 deletions