mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-04 03:41:38 +00:00
constify weakcache overloaded operators
This commit is contained in:
parent
1927b1c6d9
commit
6601274992
1 changed files with 4 additions and 4 deletions
|
@ -22,8 +22,8 @@ namespace Misc
|
|||
public:
|
||||
iterator(WeakCache* cache, typename Map::iterator current, typename Map::iterator end);
|
||||
iterator& operator++();
|
||||
bool operator==(const iterator& other);
|
||||
bool operator!=(const iterator& other);
|
||||
bool operator==(const iterator& other) const;
|
||||
bool operator!=(const iterator& other) const;
|
||||
StrongPtr operator*();
|
||||
private:
|
||||
WeakCache* mCache;
|
||||
|
@ -74,13 +74,13 @@ namespace Misc
|
|||
}
|
||||
|
||||
template <typename Key, typename T>
|
||||
bool WeakCache<Key, T>::iterator::operator==(const iterator& other)
|
||||
bool WeakCache<Key, T>::iterator::operator==(const iterator& other) const
|
||||
{
|
||||
return mCurrent == other.mCurrent;
|
||||
}
|
||||
|
||||
template <typename Key, typename T>
|
||||
bool WeakCache<Key, T>::iterator::operator!=(const iterator& other)
|
||||
bool WeakCache<Key, T>::iterator::operator!=(const iterator& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue