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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| externaltests.cpp | ||
| externaltests.h | ||
| externaltests.pri | ||
| forwarddeclaration.cpp | ||
| forwarddeclared.cpp | ||
| forwarddeclared.h | ||
| qsharedpointer.pro | ||
| tst_qsharedpointer.cpp | ||
| wrapper.cpp | ||
| wrapper.h | ||