Fix constness of operators

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4194 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2012-06-22 13:35:55 +00:00
parent 8252d5677f
commit 69d08c7b2f
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public:
}
Iterator operator + (s32 num) const { Iterator tmp = *this; return tmp += num; }
Iterator& operator -=(s32 num) const { return (*this)+=(-num); }
Iterator& operator -=(s32 num) { return (*this)+=(-num); }
Iterator operator - (s32 num) const { return (*this)+ (-num); }
bool operator ==(const Iterator& other) const { return Current == other.Current; }
@ -110,7 +110,7 @@ public:
}
ConstIterator operator + (s32 num) const { ConstIterator tmp = *this; return tmp += num; }
ConstIterator& operator -=(s32 num) const { return (*this)+=(-num); }
ConstIterator& operator -=(s32 num) { return (*this)+=(-num); }
ConstIterator operator - (s32 num) const { return (*this)+ (-num); }
bool operator ==(const ConstIterator& other) const { return Current == other.Current; }