1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

AK: Delete the StringView move-assignment operator for various types

This commit is contained in:
Timothy Flynn 2023-01-28 08:22:54 -05:00 committed by Linus Groh
parent c55a5add0f
commit b61f8cd130

View file

@ -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;