qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Marc Mutz e5ef496b5b tst_qsharedpointer: don't inherit from QSharedPointer
QSharedPointer is about to be made final. Instead
of inheriting from it to gain access to the
d-pointer, cast it to a layout-compatible struct
and access the pointer from there.

Assert liberally to ensure layout compatibility.

Change-Id: Ifc0fa6a6608e861469286673844325663f4f7fcc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-03-23 11:22:40 +01:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
externaltests.cpp tst_qsharedpointer: Fix auto test fail under Windows 7 2012-03-15 11:40:50 +01:00
externaltests.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
externaltests.pri Fixed qsharedpointer unittest to run from installation directory 2012-02-10 03:02:07 +01:00
forwarddeclaration.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
forwarddeclared.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
forwarddeclared.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsharedpointer.pro tst_qsharedpointer: Fix auto test fail under Windows 7 2012-03-15 11:40:50 +01:00
tst_qsharedpointer.cpp tst_qsharedpointer: don't inherit from QSharedPointer 2012-03-23 11:22:40 +01:00
wrapper.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wrapper.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00