Commit 125e7439 authored by Jan Möbius's avatar Jan Möbius

Make operator functions for == an != const in ObjectIterator



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10884 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a4fdef05
......@@ -507,10 +507,10 @@ class DLLEXPORT ObjectIterator {
operator value_handle() { return pos_; };
/// compare iterators
bool operator==( const ObjectIterator& _rhs);
bool operator==( const ObjectIterator& _rhs) const;
/// compare iterators
bool operator!=( const ObjectIterator& _rhs);
bool operator!=( const ObjectIterator& _rhs) const;
/// assign iterators
ObjectIterator& operator=( const ObjectIterator& _rhs);
......
......@@ -108,11 +108,11 @@ ObjectIterator::ObjectIterator(BaseObjectData* pos, IteratorRestriction _restric
};
bool ObjectIterator::operator==( const ObjectIterator& _rhs) {
bool ObjectIterator::operator==( const ObjectIterator& _rhs) const {
return ( _rhs.pos_ == pos_ );
}
bool ObjectIterator::operator!=( const ObjectIterator& _rhs) {
bool ObjectIterator::operator!=( const ObjectIterator& _rhs) const {
return ( _rhs.pos_ != pos_ );
}
......
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