mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
AK: Forbid creating StringView from temporary ByteBuffer
This commit is contained in:
parent
e118ad3273
commit
f6d0955a46
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
StringView(const String&);
|
||||
StringView(const FlyString&);
|
||||
|
||||
explicit StringView(ByteBuffer&&) = delete;
|
||||
explicit StringView(String&&) = delete;
|
||||
|
||||
[[nodiscard]] constexpr bool is_null() const { return !m_characters; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue