aboutsummaryrefslogtreecommitdiff
path: root/lib/base
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2004-05-27 22:30:21 +0000
committerFelix Domke <tmbinc@elitedvb.net>2004-05-27 22:30:21 +0000
commitd6f6602d7cea3a7899990fe79216af7d98d05917 (patch)
tree22606cee18e18a7c7830899773240a8ae9067070 /lib/base
parentae9b6fba0b02b5990fd1635a2154336c5043df02 (diff)
downloadenigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.tar.gz
enigma2-d6f6602d7cea3a7899990fe79216af7d98d05917.zip
yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore,
lots of work required).
Diffstat (limited to 'lib/base')
-rw-r--r--lib/base/smartptr.h2
1 files changed, 2 insertions, 0 deletions
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<T> operator->() { assert(ptr); return ePtrHelper<T>(ptr); }