mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +00:00
AK: Delete the StringView move-assignment operator for various types
This commit is contained in:
parent
c55a5add0f
commit
b61f8cd130
Notes:
sideshowbarker
2024-07-17 01:11:48 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/b61f8cd130 Pull-request: https://github.com/SerenityOS/serenity/pull/17217
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue