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)