]> git.pld-linux.org Git - packages/libsidplay2.git/blob - libsidplay2-gcc34.patch
- fix building on gcc 3.4
[packages/libsidplay2.git] / libsidplay2-gcc34.patch
1 --- sidplay-libs-2.1.1.orig/libsidplay/include/sidplay/SmartPtr.h
2 +++ sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h
3 @@ -17,16 +17,16 @@
4                 doFree = bufOwner;
5                 if ( bufferLen >= 1 )
6                 {
7 -                       pBufCurrent = ( bufBegin = buffer );
8 -                       bufEnd = bufBegin + bufferLen;
9 -                       bufLen = bufferLen;
10 -                       status = true;
11 +                       this->pBufCurrent = ( this->bufBegin = buffer );
12 +                       this->bufEnd = this->bufBegin + bufferLen;
13 +                       this->bufLen = bufferLen;
14 +                       this->status = true;
15                 }
16                 else
17                 {
18 -                       pBufCurrent = ( bufBegin = ( bufEnd = 0 ));
19 -                       bufLen = 0;
20 -                       status = false;
21 +                       this->pBufCurrent = ( this->bufBegin = ( this->bufEnd = 0 ));
22 +                       this->bufLen = 0;
23 +                       this->status = false;
24                 }
25         }
26         
27 @@ -211,16 +211,16 @@
28         {
29                 if ( bufferLen >= 1 )
30                 {
31 -                       pBufCurrent = ( bufBegin = buffer );
32 -                       bufEnd = bufBegin + bufferLen;
33 -                       bufLen = bufferLen;
34 -                       status = true;
35 +                       this->pBufCurrent = ( this->bufBegin = buffer );
36 +                       this->bufEnd = this->bufBegin + bufferLen;
37 +                       this->bufLen = bufferLen;
38 +                       this->status = true;
39                 }
40                 else
41                 {
42 -                       pBufCurrent = bufBegin = bufEnd = 0;
43 -                       bufLen = 0;
44 -                       status = false;
45 +                       this->pBufCurrent = this->bufBegin = this->bufEnd = 0;
46 +                       this->bufLen = 0;
47 +                       this->status = false;
48                 }
49         }
50  };
This page took 0.042345 seconds and 3 git commands to generate.