diff options
Diffstat (limited to 'qtinterface/tqt4/Qt/qlist.h')
-rw-r--r-- | qtinterface/tqt4/Qt/qlist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qtinterface/tqt4/Qt/qlist.h b/qtinterface/tqt4/Qt/qlist.h index 39e44d9..9a16b9e 100644 --- a/qtinterface/tqt4/Qt/qlist.h +++ b/qtinterface/tqt4/Qt/qlist.h @@ -163,8 +163,8 @@ public: inline uint containsRef( const T &t ) { return count(t); }; int count(const T &t) const; - inline T next() { current_index++; return *this[current_index]; } - inline T prev() { current_index--; return *this[current_index]; } + inline T next() { current_index++; return this[current_index]; } + inline T prev() { current_index--; return this[current_index]; } class const_iterator; @@ -448,7 +448,7 @@ inline void QList<T>::insert(iterator pos, int n, const T &x) { int q; for (q=0;q<n;q++) { - this.insert(pos, x); + this->insert(pos, x); } } |