Commit 69d08c7b authored by hybrid's avatar hybrid

Fix constness of operators

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4194 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 8252d567
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment