From 53308f5235c4c6cc0eb263709ff0336a86207882 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 8 May 2009 14:14:38 +0200 Subject: swig 1.3.39 wraps also operator bool.. we dont like this yet... --- lib/base/smartptr.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/base/smartptr.h') 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; } }; -- cgit v1.2.3