$NetBSD: patch-af,v 1.1 2006/01/15 20:34:13 joerg Exp $ --- libvideogfx/utility/smartpointer.hh.orig 2006-01-15 20:23:53.000000000 +0000 +++ libvideogfx/utility/smartpointer.hh @@ -51,7 +51,7 @@ namespace videogfx { public: SP() { - counter = NULL; + this->counter = NULL; pointer = NULL; } @@ -159,8 +159,8 @@ namespace videogfx { return *this; } - operator T*() { AssertDescr(counter,"smart pointer is NULL"); return pointer; } - T& operator()() { AssertDescr(counter,"smart pointer is NULL"); return *pointer; } + operator T*() { AssertDescr(this->counter,"smart pointer is NULL"); return pointer; } + T& operator()() { AssertDescr(this->counter,"smart pointer is NULL"); return *pointer; } void Decouple() {