From c8974a91a6dadaad6985c5a958541a210370eb58 Mon Sep 17 00:00:00 2001 From: Štefan Lazový Date: Sat, 7 Oct 2017 22:48:05 +0200 Subject: Core/DataStores: Implemented [] operator on DB2Storage (#20494) --- src/server/shared/DataStores/DB2Store.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/server/shared/DataStores/DB2Store.h b/src/server/shared/DataStores/DB2Store.h index 8280123b5d9..2c044b11613 100644 --- a/src/server/shared/DataStores/DB2Store.h +++ b/src/server/shared/DataStores/DB2Store.h @@ -95,6 +95,7 @@ public: T const* LookupEntry(uint32 id) const { return (id >= _indexTableSize) ? nullptr : _indexTable.AsT[id]; } T const* AssertEntry(uint32 id) const { return ASSERT_NOTNULL(LookupEntry(id)); } + T const* operator[](uint32 id) const { return LookupEntry(id); } uint32 GetNumRows() const { return _indexTableSize; } bool Load(std::string const& path, uint32 locale) override -- cgit v1.2.3