author | mickeyl <mickeyl> | 2004-04-24 15:27:06 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-24 15:27:06 (UTC) |
commit | 186c4d03ea8bf3aee4c535453409f1234442bff3 (patch) (unidiff) | |
tree | dd01280746c114656496ca12553e73a35e2dbfbb /noncore | |
parent | c9f1383f79380e7f50f257670a11f9b10024e958 (diff) | |
download | opie-186c4d03ea8bf3aee4c535453409f1234442bff3.zip opie-186c4d03ea8bf3aee4c535453409f1234442bff3.tar.gz opie-186c4d03ea8bf3aee4c535453409f1234442bff3.tar.bz2 |
gcc 3.4 fixlet
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katetextline.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katetextline.h b/noncore/apps/tinykate/libkate/document/katetextline.h index c2968cc..3518900 100644 --- a/noncore/apps/tinykate/libkate/document/katetextline.h +++ b/noncore/apps/tinykate/libkate/document/katetextline.h | |||
@@ -58,7 +58,7 @@ protected: | |||
58 | 58 | ||
59 | Iterator fastat( uint i ) { | 59 | Iterator fastat( uint i ) { |
60 | uint num=count(); | 60 | uint num=this->count(); |
61 | if (i>=num) {return end();} | 61 | if (i>=num) {return this->end();} |
62 | if (fvp->curpos<0) { fvp->curpos=0; fvp->curit=begin(); } | 62 | if (fvp->curpos<0) { fvp->curpos=0; fvp->curit=this->begin(); } |
63 | uint curpos=(uint) fvp->curpos; | 63 | uint curpos=(uint) fvp->curpos; |
64 | Iterator curit(fvp->curit.node); | 64 | Iterator curit(fvp->curit.node); |
@@ -71,7 +71,7 @@ protected: | |||
71 | forward=i > (uint)curpos; | 71 | forward=i > (uint)curpos; |
72 | } else if (i < num - i) { // start from first node | 72 | } else if (i < num - i) { // start from first node |
73 | curit=begin(); diff=i; forward=TRUE; | 73 | curit=this->begin(); diff=i; forward=TRUE; |
74 | } else { // start from last node | 74 | } else { // start from last node |
75 | curit=fromLast(); diff=num - i - 1; | 75 | curit=this->fromLast(); diff=num - i - 1; |
76 | if (diff<0) diff=0; | 76 | if (diff<0) diff=0; |
77 | forward=FALSE; | 77 | forward=FALSE; |
@@ -86,7 +86,7 @@ protected: | |||
86 | } | 86 | } |
87 | ConstIterator fastat( uint i ) const { | 87 | ConstIterator fastat( uint i ) const { |
88 | uint num=count(); | 88 | uint num=this->count(); |
89 | if (i>=num) {return end();} | 89 | if (i>=num) {return this->end();} |
90 | if (fvp->curpos<0) { fvp->curpos=0; fvp->curit=begin(); } | 90 | if (fvp->curpos<0) { fvp->curpos=0; fvp->curit=this->begin(); } |
91 | uint curpos=(uint) fvp->curpos; | 91 | uint curpos=(uint) fvp->curpos; |
92 | ConstIterator curit=fvp->curit; | 92 | ConstIterator curit=fvp->curit; |
@@ -99,7 +99,7 @@ protected: | |||
99 | forward=i > (uint)curpos; | 99 | forward=i > (uint)curpos; |
100 | } else if (i < num - i) { // start from first node | 100 | } else if (i < num - i) { // start from first node |
101 | curit=begin(); diff=i; forward=TRUE; | 101 | curit=this->begin(); diff=i; forward=TRUE; |
102 | } else { // start from last node | 102 | } else { // start from last node |
103 | curit=fromLast(); diff=num - i - 1; | 103 | curit=this->fromLast(); diff=num - i - 1; |
104 | if (diff<0) diff=0; | 104 | if (diff<0) diff=0; |
105 | forward=FALSE; | 105 | forward=FALSE; |
@@ -139,7 +139,7 @@ public: | |||
139 | } | 139 | } |
140 | 140 | ||
141 | T& operator[] ( uint i ) { detach(); return fastat(i); } | 141 | T& operator[] ( uint i ) { this->detach(); return fastat(i); } |
142 | const T& operator[] ( uint i ) const { return *fastat(i); } | 142 | const T& operator[] ( uint i ) const { return *fastat(i); } |
143 | Iterator at( uint i ) { detach(); return fastat(i); } | 143 | Iterator at( uint i ) { this->detach(); return fastat(i); } |
144 | ConstIterator at( uint i ) const { return ConstIterator( fastat(i) ); } | 144 | ConstIterator at( uint i ) const { return ConstIterator( fastat(i) ); } |
145 | }; | 145 | }; |