diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-23 19:36:56 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-12 20:09:26 +0200 |
commit | 086d6e74d247300a62026ff28564adb0f4bcab3a (patch) | |
tree | 6e19fde38dd3529036bd8290367698974935e756 /tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp | |
parent | 32edd16e2bc4ae5a3503f9d8100f689cceea7590 (diff) |
Now merge the QtShared::ExternalRefCount class into QSharedPointer
Completing the work of the previous commit: we don't need separate
classes. Merge into the main class's body.
Change-Id: I2f89b34cb6b7f5f9e8d8b809bebd86656f458644
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp')
-rw-r--r-- | tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp index b8cf0a7b78..70caad856b 100644 --- a/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp +++ b/tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp @@ -118,7 +118,7 @@ public: }; template<typename T> static inline -QtSharedPointer::ExternalRefCountData *refCountData(const QtSharedPointer::ExternalRefCount<T> &b) +QtSharedPointer::ExternalRefCountData *refCountData(const QSharedPointer<T> &b) { // access d-pointer: struct Dummy { @@ -126,7 +126,7 @@ QtSharedPointer::ExternalRefCountData *refCountData(const QtSharedPointer::Exter QtSharedPointer::ExternalRefCountData* data; }; // sanity checks: - Q_STATIC_ASSERT(sizeof(QtSharedPointer::ExternalRefCount<T>) == sizeof(Dummy)); + Q_STATIC_ASSERT(sizeof(QSharedPointer<T>) == sizeof(Dummy)); Q_ASSERT(static_cast<const Dummy*>(static_cast<const void*>(&b))->value == b.data()); return static_cast<const Dummy*>(static_cast<const void*>(&b))->data; } |