From b61f8cd13088c7b8d32fc6d700a971cdbc7856be Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 28 Jan 2023 08:22:54 -0500 Subject: [PATCH] AK: Delete the StringView move-assignment operator for various types --- AK/StringView.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AK/StringView.h b/AK/StringView.h index a30d517ea0..6e0c497a64 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -60,6 +60,9 @@ public: explicit StringView(DeprecatedFlyString&&) = delete; #endif + template StringType> + StringView& operator=(StringType&&) = delete; + [[nodiscard]] constexpr bool is_null() const { return m_characters == nullptr;