git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore,
[enigma2.git]
/
lib
/
base
/
smartptr.h
diff --git
a/lib/base/smartptr.h
b/lib/base/smartptr.h
index c89763e37fe98ed8666ee1593de17ea0d0dcd030..85ad5a90f23e5a31238e3dcb201234d3e27e4f1c 100644
(file)
--- 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); }