qt5base-lts/tests/auto/corelib/tools
Lars Knoll d1626ca6b0 Fix hash lookup using the value of a key iterator
QHash::operator[] could grow the hash even if the key being
looked up already existed. This in turn invalidated all iterators.
Avoid this by refactoring findOrInsert() to not grow if the key
already exists.

Added advantage is that this should make lookups of existing keys
slightly faster.

Fixes: QTBUG-97752
Pick-to: 6.3 6.2
Change-Id: I9df30459797b42c434ba0ee299fd1d55af8d2313
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2021-12-16 18:44:01 +01:00
..
collections QVarLengthArray: deprecate prepend() 2021-12-11 03:15:11 +00:00
containerapisymmetry QList: fix typo in QList(It, It) 2021-12-10 13:48:37 +00:00
qalgorithms Remove the qmake project files 2021-01-07 15:32:28 +01:00
qarraydata Fix signed/unsigned comparison warnings in tst_QArrayData 2021-10-29 14:11:46 +02:00
qbitarray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcache QCache: Adapt to upcoming QHash changes 2021-12-13 18:58:36 +01:00
qcommandlineparser Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qcontiguouscache Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcryptographichash Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qduplicatetracker QDuplicateTracker: add clear() 2021-11-11 13:26:14 -08:00
qeasingcurve Remove the qmake project files 2021-01-07 15:32:28 +01:00
qexplicitlyshareddatapointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qflatmap Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfreelist CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qhash Fix hash lookup using the value of a key iterator 2021-12-16 18:44:01 +01:00
qhashfunctions QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH: use unqualified qHash() lookup 2021-11-29 18:55:10 +00:00
qhashseed tst_QHashSeed: improve quality of the quality() test 2021-11-23 20:48:08 -08:00
qline Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlist QList: avoid a iterator->pointer conversion in the test 2021-10-14 02:26:41 +02:00
qmacautoreleasepool Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmakearray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmap QMap: add operator+ and - for iterators 2021-07-27 23:48:29 +02:00
qmargins Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmessageauthenticationcode Remove the qmake project files 2021-01-07 15:32:28 +01:00
qoffsetstringarray qlibraryinfo.cpp: use qOffsetStringArray for qtConfEntries 2021-11-03 14:54:37 -07:00
qpair Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpoint Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpointf Remove the qmake project files 2021-01-07 15:32:28 +01:00
qqueue Remove the qmake project files 2021-01-07 15:32:28 +01:00
qrect Remove the qmake project files 2021-01-07 15:32:28 +01:00
qringbuffer Make QRingBuffer a move-only type 2021-12-16 00:01:41 +01:00
qscopedpointer Disable warnings from using deprecated QScopedPointer::take 2021-02-13 06:44:52 +01:00
qscopedvaluerollback Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscopeguard Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qset Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qsharedpointer Long live QVERIFY_THROWS_EXCEPTION! 2021-11-26 04:44:26 +01:00
qsize Add more support for structured bindings 2021-02-25 16:08:44 +01:00
qsizef Add more support for structured bindings 2021-02-25 16:08:44 +01:00
qstl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtaggedpointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimeline Port of QTimeLine to new property system 2021-04-26 16:44:54 +02:00
qvarlengtharray QVarLengthArray: don't allow syncqt to export base classes 2021-12-15 00:04:45 +01:00
qversionnumber Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Compile autotests for Integrity 2021-09-20 17:29:04 +03:00