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