26 lines
838 B
Text
26 lines
838 B
Text
$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()
|
|
{
|