qt5base-lts/tests/auto
Ville Voutilainen 0e4cc15da3 Fix comparison between nullptr and QWeakPointer
The comparison between nullptr and QWeakPointer was just bogus
and ill-formed. The INTEGRITY compiler catches that even if
nothing tries to use the comparison. It is an ill-formed, no
diagnostic required case of a function template never being
able to produce a valid specialization. And while we're at
it, this patch makes the result of comparing a nullptr to
a QWeakPointer or vice versa the same as asking .isNull() from
the weak pointer, because it seems mind-boggling if those
are not the same operation.

Task-number: QTBUG-93093
Change-Id: I0cc80e795c9af2be1b76de05157aa458ef260f2e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-04-28 23:33:06 +03:00
..
bic/data Add binary compatibility files for Qt 6.0.0 2021-04-08 06:34:13 +00:00
cmake CMake: Fix tst_qaddpreroutine to work with static builds 2021-04-26 19:35:55 +02:00
concurrent Fix gcc warnings from having only one of assignment/copy 2021-04-11 19:53:51 +02:00
corelib Fix comparison between nullptr and QWeakPointer 2021-04-28 23:33:06 +03:00
dbus Port QDBusServiceWatcher::watchedServices to bindable properties 2021-04-28 16:59:53 +02:00
gui Call updateHighDpiScaling() on screenAdded() 2021-04-28 18:23:39 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Fix linking on Windows when SSL is not configured 2021-04-26 14:44:51 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other QObject: port to new property system 2021-04-21 15:34:28 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql SQLite: Handle tables and fields with a dot in the name correctly 2021-04-23 10:46:58 +02:00
testlib Fix compiler warnings from int/size_t mismatches 2021-04-28 06:48:43 +02:00
tools Silence a bunch of gcc warnings for the moc test 2021-03-29 15:59:48 +02:00
widgets Fix wrong C-style cast, use correct QTest::keyClick overload 2021-04-28 10:15:29 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build minimal subset of tests in desktop static builds 2021-04-06 09:15:37 +01:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00