diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-05-08 14:14:38 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-05-08 14:14:38 +0200 |
| commit | 53308f5235c4c6cc0eb263709ff0336a86207882 (patch) | |
| tree | 16cf9d38284a95d9c8aa8ba768ac793b1467918b /lib/base | |
| parent | a9ecf626793f586eedb73c1178a6b583fb60db54 (diff) | |
| download | enigma2-53308f5235c4c6cc0eb263709ff0336a86207882.tar.gz enigma2-53308f5235c4c6cc0eb263709ff0336a86207882.zip | |
swig 1.3.39 wraps also operator bool.. we dont like this yet...
Diffstat (limited to 'lib/base')
| -rw-r--r-- | lib/base/smartptr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/base/smartptr.h b/lib/base/smartptr.h index ac6b9eb0..a2c6691f 100644 --- a/lib/base/smartptr.h +++ b/lib/base/smartptr.h @@ -57,11 +57,10 @@ public: #ifndef SWIG T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; } T* &ptrref() { ASSERT(!ptr); return ptr; } + operator bool() const { return !!this->ptr; } #endif T* operator->() const { ptrAssert(ptr); return ptr; } operator T*() const { return this->ptr; } - - operator bool() const { return !!this->ptr; } }; |
