qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Thiago Macieira 95afe6b244 QSharedPointer: do allow calling deleters on null pointers
I don't know why std::shared_ptr allows this, but why not.

[ChangeLog][Important Behavior Changes] QSharedPointer objects will now
call custom deleters even when the pointer being tracked was null. This
behavior is the same as std::shared_ptr.

Fixes: QTBUG-85285
Pick-to: 5.15
Change-Id: I24006db8360041f598c5fffd161c260df0313b55
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2020-07-31 10:40:25 -07:00
..
.gitignore
externaltests.cpp Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
externaltests.h Updated license headers 2016-01-21 18:55:18 +00:00
externaltests.pri remove pointless conditional defines 2015-11-16 14:40:20 +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 Updated license headers 2016-01-21 18:55:18 +00:00
nontracked.h Updated license headers 2016-01-21 18:55:18 +00:00
qsharedpointer.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
tst_qsharedpointer.cpp QSharedPointer: do allow calling deleters on null pointers 2020-07-31 10:40:25 -07: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