diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-28 08:22:54 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-28 15:24:55 +0000 |
commit | b61f8cd13088c7b8d32fc6d700a971cdbc7856be (patch) | |
tree | 0bfb20ac47e6c1899f10fb3a5a89bb6c219ad330 /AK/StringView.h | |
parent | c55a5add0f61df9847ace05fb5bb0bc4b90b7c58 (diff) | |
download | serenity-b61f8cd13088c7b8d32fc6d700a971cdbc7856be.zip |
AK: Delete the StringView move-assignment operator for various types
Diffstat (limited to 'AK/StringView.h')
-rw-r--r-- | AK/StringView.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<OneOf<String, DeprecatedString, DeprecatedFlyString, ByteBuffer> StringType> + StringView& operator=(StringType&&) = delete; + [[nodiscard]] constexpr bool is_null() const { return m_characters == nullptr; |