fix scope issue so that it builds with gcc4
This commit is contained in:
parent
7076e53a27
commit
86fe199750
27
audio/libsidplay/patches/patch-src_smart_h
Normal file
27
audio/libsidplay/patches/patch-src_smart_h
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-src_smart_h,v 1.1 2010/05/11 21:19:25 espie Exp $
|
||||
--- src/smart.h.orig Tue May 11 23:07:35 2010
|
||||
+++ src/smart.h Tue May 11 23:16:56 2010
|
||||
@@ -211,16 +211,16 @@ class smartPtr : public smartPtrBase<T>
|
||||
{
|
||||
if ( bufferLen >= 1 )
|
||||
{
|
||||
- pBufCurrent = ( bufBegin = buffer );
|
||||
- bufEnd = bufBegin + bufferLen;
|
||||
- bufLen = bufferLen;
|
||||
- status = true;
|
||||
+ this->pBufCurrent = ( this->bufBegin = buffer );
|
||||
+ this->bufEnd = this->bufBegin + bufferLen;
|
||||
+ this->bufLen = bufferLen;
|
||||
+ this->status = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
- pBufCurrent = bufBegin = bufEnd = 0;
|
||||
- bufLen = 0;
|
||||
- status = false;
|
||||
+ this->pBufCurrent = this->bufBegin = this->bufEnd = 0;
|
||||
+ this->bufLen = 0;
|
||||
+ this->status = false;
|
||||
}
|
||||
}
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user