projects
/
vuplus_dvbapp
/ 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,
[vuplus_dvbapp]
/
lib
/
base
/
smartptr.h
diff --git
a/lib/base/smartptr.h
b/lib/base/smartptr.h
index
c89763e
..
85ad5a9
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); }