mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Forbid creating StringView from temporary FlyString
This commit is contained in:
parent
f6d0955a46
commit
9413dddb8b
Notes:
sideshowbarker
2024-07-18 04:17:22 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/9413dddb8b5 Pull-request: https://github.com/SerenityOS/serenity/pull/9946 Reviewed-by: https://github.com/IdanHo ✅
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…
Reference in a new issue