summaryrefslogtreecommitdiff
path: root/graphics/libvideogfx/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libvideogfx/patches/patch-af')
-rw-r--r--graphics/libvideogfx/patches/patch-af24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/libvideogfx/patches/patch-af b/graphics/libvideogfx/patches/patch-af
new file mode 100644
index 00000000000..edfc0b9be8d
--- /dev/null
+++ b/graphics/libvideogfx/patches/patch-af
@@ -0,0 +1,24 @@
+$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()
+ {