From caedd05bd8238694b26b57bd752f6ed91e17d89c Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 11 Aug 2020 21:24:29 +0430 Subject: [PATCH] AK: Span::operator=(const T&) => Span::operator=(const Span&) --- AK/Span.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/Span.h b/AK/Span.h index 5fdcfce829..847a26cafe 100644 --- a/AK/Span.h +++ b/AK/Span.h @@ -176,10 +176,11 @@ public: return this->m_values[index]; } - ALWAYS_INLINE T& operator=(const T& other) + ALWAYS_INLINE Span& operator=(const Span& other) { this->m_size = other.m_size; this->m_values = other.m_values; + return *this; } ALWAYS_INLINE operator Span() const