qt5base-lts/tests/auto/corelib/tools/qsharedpointer
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
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
CMakeLists.txt Resurrect tests for QSharedPointer 2021-04-27 01:33:42 +03:00
externaltests.cpp Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
externaltests.h Updated license headers 2016-01-21 18:55:18 +00:00
forwarddeclared.cpp Updated license headers 2016-01-21 18:55:18 +00:00
forwarddeclared.h Updated license headers 2016-01-21 18:55:18 +00:00
nontracked.cpp Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
nontracked.h Updated license headers 2016-01-21 18:55:18 +00:00
tst_qsharedpointer.cpp Fix comparison between nullptr and QWeakPointer 2021-04-28 23:33:06 +03:00
wrapper.cpp Updated license headers 2016-01-21 18:55:18 +00:00
wrapper.h Updated license headers 2016-01-21 18:55:18 +00:00