From 2fd47f91e263d030e0a83333a379c8e6b27b5d4d Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 19 Feb 2024 17:36:37 +0100 Subject: [PATCH] Fix codestyle #2179 --- Source/Engine/Core/Collections/Array.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h index 9c50c5ccf..d67aecbc1 100644 --- a/Source/Engine/Core/Collections/Array.h +++ b/Source/Engine/Core/Collections/Array.h @@ -250,6 +250,16 @@ public: return _count == 0; } + /// + /// Determines if given index is valid. + /// + /// The index. + /// true if is valid a index; otherwise, false. + bool IsValidIndex(int32 index) const + { + return index < _count && index >= 0; + } + /// /// Gets the pointer to the first item in the collection (linear allocation). /// @@ -737,18 +747,7 @@ public: ::Swap(other, *this); } } - - /// - /// Determines if is valid index. - /// - /// The index. - /// - /// true if is valid a index; otherwise, false. - /// - bool IsValidIndex(int index) const - { - return index < _count && index >= 0; - } + /// /// Reverses the order of the added items in the collection. ///