qt5base-lts/tests/auto/corelib
Marc Mutz 1977c922e9 QFlatMap: make insertion STL-compatible
That is, insert() doesn't overwrite an existing entry, and range
insert inserts the first of equivalent keys' values, not the last.

This allowed this author to optimize the implementation of
makeUnique() to a O(N) algorithm (was: O(N²)). Said optimization would
have been possible with the old semantics, too, but I wrote the
algorithm first and only then noticed the broken insert() behavior is
present on QFlatMap, too, so I decided not to let good code go to
waste and to fix both problems at the same time.

In order to give users a hint of the changed semantics, make the new
API opt-in until Qt 6.5, so Qt 6.4 ships with the both the old and the
new semantics disabled, where they contradict.

Fixes: QTBUG-100092
Change-Id: Ic96d8bfe6bed9068dbe8c0d7171bd8921050fd95
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-03-16 18:28:27 +01:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Restore C++20-deprecated mixed-enum bitwise operators 2022-03-15 11:36:09 +01:00
io qDecodeDataUrl(): treat ";base64" marker as case-insensitive 2022-03-11 19:15:49 +00:00
itemmodels Fix test to pass with QT_FORCE_ASSERTS 2022-02-18 18:55:38 +01:00
kernel QObject: give some TLC to dumpRecursive() 2022-03-16 02:26:56 +00:00
mimetypes Remove unused .qrc files 2022-01-17 23:17:01 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Fix test when accessing patched plugin too fast 2022-02-25 14:52:34 +02:00
serialization Revert "Blacklist: test cases blacklisted in tst_QXmlStream:" 2022-03-15 07:32:32 +00:00
text QStringTokenizer::toContainer(): allow more types of target containers 2022-03-15 21:05:31 +01:00
thread QMutexLocker: add isLocked() 2022-03-15 03:32:14 +01:00
time Add tests for an assertion seen on Windows 2022-03-04 23:26:13 +01:00
tools QFlatMap: make insertion STL-compatible 2022-03-16 18:28:27 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00