qt5base-lts/tests/auto/corelib/tools
Giuseppe D'Angelo 2ba1d540e6 QMultiMap: fix remove(Key, T) when key/value belong to the map
Just like any other container, it's legitimate for the user to
pass key/values belonging to the same container.
Q(Multi)Map::remove(Key) are already safe (either they call
erase() directly on std::(multi)map, where it does the right thing,
or they skip elements while detaching).
However, QMultiMap::remove(Key, T) wasn't safe in this regard
(the implementation is hand rolled), so take copies before start
erasing.

Change-Id: I87767d608b83216a6ff264fb6c8f145fdb5934f8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-08-19 01:45:19 +02:00
..
collections Long Live QMap as a refcounted std::map! 2020-08-06 19:15:39 +02:00
containerapisymmetry Another round of using noexcept instead of pre-C++11 defines 2020-08-13 19:58:40 +02:00
qalgorithms Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qarraydata Add QArrayDataPointer::freeSpace*() functions 2020-08-18 12:55:38 +02:00
qbitarray CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qcache CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qcommandlineparser QCommandLineOption: purge deprecated API 2020-07-20 16:06:28 +02:00
qcontiguouscache CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qcryptographichash QCryptographicHash: Add BLAKE2b and BLAKE2s hashing algorithms 2020-07-31 15:05:18 +02:00
qeasingcurve CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qexplicitlyshareddatapointer Fix warnings about unused expression results in tests 2020-07-29 14:33:29 +02:00
qflatmap Use QList instead of QVector in corelib tests 2020-07-07 11:48:45 +02:00
qfreelist Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qhash Disable warning about self-move and self-assign-overload 2020-07-26 18:06:34 +02:00
qhashfunctions CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qline QLine: purge deprecated API 2020-07-27 11:26:08 +02:00
qlinkedlist Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qlist Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qmacautoreleasepool Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qmakearray CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qmap QMultiMap: fix remove(Key, T) when key/value belong to the map 2020-08-19 01:45:19 +02:00
qmargins CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qmessageauthenticationcode CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qoffsetstringarray Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qpair Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qpoint CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpointf CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qqueue CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qrect CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qringbuffer CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qscopedpointer Fix warnings about unused expression results in tests 2020-07-29 14:33:29 +02:00
qscopedvaluerollback CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qscopeguard CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qset CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qsharedpointer Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
qsize CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qsizef CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstl CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtaggedpointer QTaggedPointer: verify constexpr'ness of some ctors 2020-05-16 08:55:28 +02:00
qtimeline Deprecate QTimeLine's curveShape in favor of its easingCurve 2020-07-16 17:39:11 +02:00
qvarlengtharray CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qversionnumber Tests: Use QVERIFY instead of QCOMPARE for empty lists 2020-07-10 14:30:58 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
CMakeLists.txt Move implementation of QVector/List back to qlist.h 2020-06-20 20:01:33 +02:00
tools.pro Move implementation of QVector/List back to qlist.h 2020-06-20 20:01:33 +02:00