[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kresources
From: Benjamin Meyer <ben () meyerhome ! net>
Date: 2005-10-20 9:57:18
Message-ID: 1129802238.771147.28457.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 472257 by bmeyer:
make operator== const
M +4 -4 manager.h
--- trunk/KDE/kdelibs/kresources/manager.h #472256:472257
@@ -96,8 +96,8 @@
Iterator &operator++( int ) { mIt++; return *this; }
Iterator &operator--() { mIt--; return *this; }
Iterator &operator--( int ) { mIt--; return *this; }
- bool operator==( const Iterator &it ) { return mIt == it.mIt; }
- bool operator!=( const Iterator &it ) { return mIt != it.mIt; }
+ bool operator==( const Iterator &it ) const { return mIt == it.mIt; }
+ bool operator!=( const Iterator &it ) const { return mIt != it.mIt; }
private:
Resource::List::Iterator mIt;
@@ -158,8 +158,8 @@
do { mIt--; } while ( checkActive() );
return *this;
}
- bool operator==( const ActiveIterator &it ) { return mIt == it.mIt; }
- bool operator!=( const ActiveIterator &it ) { return mIt != it.mIt; }
+ bool operator==( const ActiveIterator &it ) const { return mIt == it.mIt; }
+ bool operator!=( const ActiveIterator &it ) const { return mIt != it.mIt; }
private:
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic