CObjectList: Simplify cbegin() and cend()

We can just use the const variants of begin() and end() now.
This commit is contained in:
Lioncash 2020-05-08 00:25:18 -04:00
parent 34b2383dfd
commit 49836025f7
1 changed files with 2 additions and 2 deletions

View File

@ -69,8 +69,8 @@ public:
[[nodiscard]] iterator end() { return iterator(*this, -1); }
[[nodiscard]] const_iterator begin() const { return const_iterator(*this, x2008_firstId); }
[[nodiscard]] const_iterator end() const { return const_iterator(*this, -1); }
[[nodiscard]] const_iterator cbegin() const { return const_iterator(*this, x2008_firstId); }
[[nodiscard]] const_iterator cend() const { return const_iterator(*this, -1); }
[[nodiscard]] const_iterator cbegin() const { return begin(); }
[[nodiscard]] const_iterator cend() const { return end(); }
explicit CObjectList(EGameObjectList listEnum);
virtual ~CObjectList() = default;