From 457c11627549f9aa5359eb8ba0aa7b258f284da7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Mar 2020 21:40:00 -0400 Subject: [PATCH] CCollisionInfoList: Simplify definition of begin() and end() Same behavior, but without a verbose return type. --- Runtime/Collision/CCollisionInfoList.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Runtime/Collision/CCollisionInfoList.hpp b/Runtime/Collision/CCollisionInfoList.hpp index c41eaea3e..30a10d2b1 100644 --- a/Runtime/Collision/CCollisionInfoList.hpp +++ b/Runtime/Collision/CCollisionInfoList.hpp @@ -53,9 +53,10 @@ public: void Clear() { x0_list.clear(); } const CCollisionInfo& Front() const { return x0_list.front(); } const CCollisionInfo& GetItem(int i) const { return x0_list[i]; } - rstl::reserved_vector::iterator end() { return x0_list.end(); } - rstl::reserved_vector::const_iterator end() const { return x0_list.end(); } - rstl::reserved_vector::iterator begin() { return x0_list.begin(); } - rstl::reserved_vector::const_iterator begin() const { return x0_list.begin(); } + + auto end() noexcept { return x0_list.end(); } + auto end() const noexcept { return x0_list.end(); } + auto begin() noexcept { return x0_list.begin(); } + auto begin() const noexcept { return x0_list.begin(); } }; } // namespace urde