qt6-bb10/src
Marc Mutz 2596a8a55c QSharedNetworkSessionManager: clean up
Under no circumstance must Qt code define a non-public qHash()
overload of a public Qt type. If you can't provide a public qHash()
for the type, you can't use QHash. Period. This is because if we don't
provide a qHash() function, the user will have to provide one, and
then we have an ODR violation, iow: UB.

So, port away from QHash and qHash and use std::unordered_map, which
allows to pass a custom hash function - just what we needed.

Also fix other issues of the code:

- Use a function object as the deleter of the QSharedPointer, to allow
  inlining the function call.

- Avoid double lookup in case of a cache miss.

- Don't use direct initialization syntax for pointer variables. That's
  just ... weird.

Change-Id: Ica8bff728c1bd1cbb2fb43aa03a99bcb7ac2f7cc
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-05-28 21:53:17 +02:00
..
3rdparty Update 3rdparty md4c library 2019-05-24 15:37:05 +02:00
android Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-12 01:00:08 +02:00
angle Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-12 01:00:08 +02:00
concurrent
corelib Fix definition of QT_DEPRECATED_SINCE 2019-06-04 14:45:48 +02:00
dbus Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
gui Markdown and HTML: support image alt text and title 2019-06-01 21:13:58 +02:00
network QSharedNetworkSessionManager: clean up 2019-05-28 21:53:17 +02:00
opengl Doc: replace even more null/0/nullptr with \nullptr macro 2019-05-08 12:48:32 +00:00
openglextensions Move forward-declaration inside of namespace 2019-05-15 10:58:49 +00:00
platformheaders
platformsupport Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
plugins Use QStringView overloads of <QDate/Time>::toString() 2019-05-29 18:24:29 +02:00
printsupport Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-10 01:00:08 +02:00
sql QtSql: mark QSqlite2 plugin as obsolete 2019-05-05 20:59:46 +00:00
testlib Replace QTESTLIB_USE_VALGRIND with a new feature 'valgrind' 2019-05-28 17:20:00 +09:00
tools Convert the one extant use of QTime as a timer to use a local class 2019-05-24 16:37:39 +02:00
widgets QTextBrowser: detect and load markdown rather than assuming HTML 2019-05-30 16:37:23 +00:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
src.pro