yes! ich habs kaputt gemacht! (doesn't compile anymore, doesn't work anymore,
[vuplus_dvbapp] / lib / base / smartptr.h
index c89763e..85ad5a9 100644 (file)
@@ -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); }