pkgsrc/graphics/aqsis/patches/patch-ai
joerg 54791df01a Fix C++ to work with GCC 3.4. Fix linkage to make at least some sense.
Always link with -lddmsock, it might be overridden in the application
though. The former guranties that the libraries don't have unresolved
symbols. Bump revision.
2006-05-11 18:55:31 +00:00

34 lines
1.2 KiB
Text

$NetBSD: patch-ai,v 1.1 2006/05/11 18:55:31 joerg Exp $
--- render/parameters.h.orig 2006-04-28 16:14:58.000000000 +0000
+++ render/parameters.h
@@ -463,7 +463,7 @@ class CqParameterTypedVaryingArray : pub
m_aValues.resize( size );
TqInt j;
for ( j = 0; j < size; j++ )
- m_aValues[ j ].resize( m_Count );
+ m_aValues[ j ].resize( this->m_Count );
}
virtual TqUint Size() const
{
@@ -541,9 +541,9 @@ class CqParameterTypedVaryingArray : pub
TqUint j;
for ( j = 0; j < m_aValues.size(); j++ )
{
- m_aValues[ j ].resize( m_Count );
+ m_aValues[ j ].resize( this->m_Count );
TqInt i;
- for ( i = 0; i < m_Count; i++ )
+ for ( i = 0; i < this->m_Count; i++ )
m_aValues[ j ][ i ] = From.m_aValues[ j ][ i ];
}
return ( *this );
@@ -650,7 +650,7 @@ class CqParameterTypedUniformArray : pub
{
m_aValues.resize( From.m_aValues.size() );
TqInt i2 = 0;
- for ( std::vector<T>::iterator i = From.m_aValues.being(); i != From.m_aValues.end(); i++, i2++ )
+ for ( typename std::vector<T>::iterator i = From.m_aValues.being(); i != From.m_aValues.end(); i++, i2++ )
m_aValues[ i2 ] = ( *i );
return ( *this );
}