qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Giuseppe D'Angelo 20993adffd QSharedPointer: make QT_SHAREDPOINTER_TRACK_POINTERS work with QObjects
If setQObjectShared crashes because a QObject is tracked by two
different QSharedPointers, we lose the debug feature offered by #defining
QT_SHAREDPOINTER_TRACK_POINTERS, as the check done by this define
happens after the setQObjectShared call.

Therefore, move setQObjectShared after the internalSafetyCheckAdd call.

This is actually a noop change in 5.0, as setQObjectShared does nothing.
However it prevents a bug in case the Qt 4 behaviour is brought back
in some later version.

Change-Id: I71340d0f878828354537762d01c46d441efc918c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-08-28 21:18:17 +02: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
forwarddeclared.cpp Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
forwarddeclared.h Remove "delete value" from QSharedPointer 2012-06-12 20:09:09 +02:00
qsharedpointer.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
tst_qsharedpointer.cpp QSharedPointer: make QT_SHAREDPOINTER_TRACK_POINTERS work with QObjects 2012-08-28 21:18:17 +02: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