From 4b06cef93af9ed09c5aba804872c8b8706c95570 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Fri, 22 Sep 2023 01:58:21 +0200 Subject: [PATCH] AK: Add copy assignment operator for SourceLocation --- AK/SourceLocation.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AK/SourceLocation.h b/AK/SourceLocation.h index a3a61b0a3d9..f26e53bc256 100644 --- a/AK/SourceLocation.h +++ b/AK/SourceLocation.h @@ -25,6 +25,8 @@ public: } constexpr SourceLocation() = default; + constexpr SourceLocation(SourceLocation const&) = default; + SourceLocation& operator=(SourceLocation& other) = default; private: constexpr SourceLocation(char const* const file, u32 line, char const* const function) @@ -34,9 +36,9 @@ private: { } - char const* const m_function { nullptr }; - char const* const m_file { nullptr }; - const u32 m_line { 0 }; + char const* m_function { nullptr }; + char const* m_file { nullptr }; + u32 m_line { 0 }; }; }