mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/DataStores: Add const to DBStorageIterator dereference operators
This commit is contained in:
@@ -41,8 +41,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
T const* operator->() { return _index[_pos]; }
|
||||
T const* operator*() { return _index[_pos]; }
|
||||
T const* operator->() const { return _index[_pos]; }
|
||||
T const* operator*() const { return _index[_pos]; }
|
||||
|
||||
bool operator==(DBStorageIterator const& right) const { /*ASSERT(_index == right._index, "Iterator belongs to a different container")*/ return _pos == right._pos; }
|
||||
bool operator!=(DBStorageIterator const& right) const { return !(*this == right); }
|
||||
|
||||
Reference in New Issue
Block a user