From d6f6602d7cea3a7899990fe79216af7d98d05917 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 27 May 2004 22:30:21 +0000 Subject: yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore, lots of work required). --- lib/base/smartptr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/base') diff --git a/lib/base/smartptr.h b/lib/base/smartptr.h index c89763e3..85ad5a90 100644 --- a/lib/base/smartptr.h +++ b/lib/base/smartptr.h @@ -66,6 +66,8 @@ public: if (ptr) ptr->Release(); } + + T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; } T* &ptrref() { assert(!ptr); return ptr; } ePtrHelper operator->() { assert(ptr); return ePtrHelper(ptr); } -- cgit v1.2.3