diff --git a/AK/FixedArray.h b/AK/FixedArray.h index 08c82005807..55ca1554b92 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -89,8 +89,13 @@ public: : m_storage(exchange(other.m_storage, nullptr)) { } - // This function would violate the contract, as it would need to deallocate this FixedArray. As it also has no use case, we delete it. - FixedArray& operator=(FixedArray&&) = delete; + + FixedArray& operator=(FixedArray&& other) + { + m_storage = other.m_storage; + other.m_storage = nullptr; + return *this; + } ~FixedArray() {