equal
deleted
inserted
replaced
59 // Hide constructor and destructor |
59 // Hide constructor and destructor |
60 PresenceCacheBuddyUtils(); |
60 PresenceCacheBuddyUtils(); |
61 ~PresenceCacheBuddyUtils(); |
61 ~PresenceCacheBuddyUtils(); |
62 }; |
62 }; |
63 |
63 |
|
64 // CleanupStack helpers for item owning RPointerArrays |
|
65 template <class T> |
|
66 class CleanupResetAndDestroy |
|
67 { |
|
68 public: |
|
69 inline static void PushL(T& aRef) |
|
70 { CleanupStack::PushL(TCleanupItem(&ResetAndDestroy,&aRef)); } |
|
71 private: |
|
72 inline static void ResetAndDestroy(TAny *aPtr) |
|
73 { static_cast<T*>(aPtr)->ResetAndDestroy(); } |
|
74 }; |
|
75 |
|
76 template <class T> |
|
77 inline void CleanupResetAndDestroyPushL(T& aRef) |
|
78 { CleanupResetAndDestroy<T>::PushL(aRef); } |
64 #endif // PRESENCEOBJECTHELPERS_H |
79 #endif // PRESENCEOBJECTHELPERS_H |