diff options
author | hjk <qtc-committer@nokia.com> | 2009-11-30 12:27:05 (GMT) |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-11-30 12:30:42 (GMT) |
commit | 00bb48127cf0954555402d59a18e55223c707a53 (patch) | |
tree | 7066d3133fef1a67461710592c05f02a6e44c44b /src/corelib/tools | |
parent | 61f2b450560887651b3350e63bdd75609e3b6752 (diff) | |
download | Qt-00bb48127cf0954555402d59a18e55223c707a53.zip Qt-00bb48127cf0954555402d59a18e55223c707a53.tar.gz Qt-00bb48127cf0954555402d59a18e55223c707a53.tar.bz2 |
QVector: fix const_iterator-=(int)
Reviewed-by: Harald Fernengel
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qvector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index f0de98d..9f10202 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -219,7 +219,7 @@ public: inline const_iterator &operator--() { i--; return *this; } inline const_iterator operator--(int) { T *n = i; i--; return n; } inline const_iterator &operator+=(int j) { i+=j; return *this; } - inline const_iterator &operator-=(int j) { i+=j; return *this; } + inline const_iterator &operator-=(int j) { i-=j; return *this; } inline const_iterator operator+(int j) const { return const_iterator(i+j); } inline const_iterator operator-(int j) const { return const_iterator(i-j); } inline int operator-(const_iterator j) const { return i - j.i; } |