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