qt6-bb10/src
Giuseppe D'Angelo 8191a19df4 QMultiMap: fix regression in find(Key, T)
1) Implementing the const version in terms of the non-const
version exposes to accidental detaches. Avoid that.

2) The non-const version has to detach, just like find(Key),
or doing a comparison like find(Key, T) != end() might report
a wrong result.

3) Properly check if the value was found by checking find_if's
return value (against its second parameter, the end of the
iterated range). If the value was NOT found, then return
the map's end() (again because clients of find() will check
against end()).

Change-Id: I03533e89f1e7a52ad888d159d78f38002765953c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2020-08-19 01:45:25 +02:00
..
3rdparty Android: Copy required gradle files in non-prefix shadow builds 2020-08-18 20:24:43 +02:00
android Android: Add support for travesing directories and accessing files 2020-08-07 12:04:57 +02:00
concurrent Another round of 0->nullptr cleanup 2020-07-31 12:56:50 +02:00
corelib QMultiMap: fix regression in find(Key, T) 2020-08-19 01:45:25 +02:00
dbus Remove QVariant(int type, void *data, ...) constructor 2020-08-15 10:56:29 +02:00
gui Use [[nodiscard]] with clang in C++17 mode 2020-08-18 22:32:20 +02:00
network QSsl: introduce qtls_utils_p.h with simple RAII helpers 2020-08-18 20:24:44 +02:00
opengl Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
openglwidgets Register QPlatformBackingStoreOpenGLSupport when needed 2020-07-29 20:34:15 +02:00
platformsupport Remove linuxofono 2020-07-15 07:33:32 +02:00
plugins macOS: Remove support for surface-backed views 2020-08-18 00:35:21 +02:00
printsupport CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
sql CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
testlib CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
tools Follow through on ### Qt6 comments in qglobal.h 2020-08-18 12:55:38 +02:00
widgets Use [[nodiscard]] with clang in C++17 mode 2020-08-18 22:32:20 +02:00
winmain Remove winrt 2020-06-06 20:25:49 +02:00
xml CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00
CMakeLists.txt Remove last remaining bits of QtPlatformHeaders 2020-08-04 07:12:32 +02:00
src.pro Remove last remaining bits of QtPlatformHeaders 2020-08-04 07:12:32 +02:00