aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-11-27 22:16:32 +0100
committerShauren <shauren.trinity@gmail.com>2022-11-27 22:16:32 +0100
commit79ca6df27db6edb296eb3c6b2a50670543de713d (patch)
treea8da5625ccddc149356827e8127182fb38b5f298 /src
parent2cf5db8a8e1913e4b9d1a25a92df455f16628fe2 (diff)
Core/DataStores: Add const to DBStorageIterator dereference operators
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/DataStores/DBStorageIterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/DataStores/DBStorageIterator.h b/src/server/shared/DataStores/DBStorageIterator.h
index ce1db5f89a0..9496b498fec 100644
--- a/src/server/shared/DataStores/DBStorageIterator.h
+++ b/src/server/shared/DataStores/DBStorageIterator.h
@@ -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); }