From 49836025f79eb50bf5c5df16dcee49f180391f0e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 8 May 2020 00:25:18 -0400 Subject: [PATCH] CObjectList: Simplify cbegin() and cend() We can just use the const variants of begin() and end() now. --- Runtime/CObjectList.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/CObjectList.hpp b/Runtime/CObjectList.hpp index 6222877b3..68efd1d1d 100644 --- a/Runtime/CObjectList.hpp +++ b/Runtime/CObjectList.hpp @@ -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;