summaryrefslogtreecommitdiff
path: root/graphics/libvideogfx/patches/patch-af
blob: f7bd2a3e9b44d124554b6cbde2c73e8f773eeb89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-af,v 1.2 2011/08/05 18:21:13 wiz Exp $

Try to fix stricter GCC 3.4 template handling.

--- 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()
     {