From f73afbb5ae533706d2445799473de72e7ecfd224 Mon Sep 17 00:00:00 2001 From: creator1creeper1 Date: Sat, 8 Jan 2022 20:50:34 +0100 Subject: [PATCH] AK: Reorder functions in FixedArray so that mutable comes before const --- AK/FixedArray.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AK/FixedArray.h b/AK/FixedArray.h index 310b2ff7394..e793de8a387 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -114,17 +114,17 @@ public: ::swap(m_elements, other.m_elements); } - using ConstIterator = SimpleIterator; using Iterator = SimpleIterator; + using ConstIterator = SimpleIterator; - ConstIterator begin() const { return ConstIterator::begin(*this); } Iterator begin() { return Iterator::begin(*this); } + ConstIterator begin() const { return ConstIterator::begin(*this); } - ConstIterator end() const { return ConstIterator::end(*this); } Iterator end() { return Iterator::end(*this); } + ConstIterator end() const { return ConstIterator::end(*this); } - Span span() const { return { data(), size() }; } Span span() { return { data(), size() }; } + Span span() const { return { data(), size() }; } private: FixedArray(size_t size, T* elements)