diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-03-06 08:33:32 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-23 11:22:40 +0100 |
commit | e5ef496b5bd6a4650d765622c0690cdf47d7defc (patch) | |
tree | c40b82be6fc98d1b98217ff9e8d6e7bf69076501 /tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp | |
parent | 9848c8b92c70006e55a7fa569d06d62efaf5ccc1 (diff) |
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>
Diffstat (limited to 'tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp')
0 files changed, 0 insertions, 0 deletions