From af9a7b13748cc4ccffe6f257c520b2a3b040102b Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Wed, 28 Apr 2021 14:43:10 -0700 Subject: [PATCH] AK: Add missing 'const' in Span --- AK/Span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Span.h b/AK/Span.h index ed13319201..aafe0ae005 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -195,7 +195,7 @@ public: return this->m_values[index]; } - ALWAYS_INLINE constexpr T& operator[](size_t index) const + ALWAYS_INLINE constexpr const T& operator[](size_t index) const { return at(index); }