Core/DataStores: Add const to DBStorageIterator dereference operators

# Conflicts:
#	src/server/shared/DataStores/DBStorageIterator.h
This commit is contained in:
Shauren authored and Ovahlord committed 2023-06-01 20:50:47 +02:00
1 parent 47048f3dc5
commit 08203a1e35
1 file changed
+2 -2
@@ -41,8 +41,8 @@ public:
}
}
T* operator->() { return _index[_pos]; }
T* 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); }