From ec32395d96ffc90f775bbadb1e9ef6e64c69b5cd Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Thu, 20 Aug 2009 15:35:04 +0200 Subject: Add missing template typedefs Reviewed-by: Thiago --- src/corelib/tools/qshareddata.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/tools/qshareddata.h b/src/corelib/tools/qshareddata.h index dde6e88..8aace0f 100644 --- a/src/corelib/tools/qshareddata.h +++ b/src/corelib/tools/qshareddata.h @@ -69,6 +69,9 @@ private: template class QSharedDataPointer { public: + typedef T Type; + typedef T *pointer; + inline void detach() { if (d && d->ref != 1) detach_helper(); } inline T &operator*() { detach(); return *d; } inline const T &operator*() const { return *d; } @@ -127,6 +130,7 @@ template class QExplicitlySharedDataPointer { public: typedef T Type; + typedef T *pointer; inline T &operator*() const { return *d; } inline T *operator->() { return d; } -- cgit v0.12