diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-09-10 23:26:22 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-11 13:22:51 +0300 |
commit | f6d0955a46d660bbcfabb1be292b0f405742a0f6 (patch) | |
tree | 3f7f0a16a5031494df71360896cbe8da6d7d3865 /AK | |
parent | e118ad3273b2fe49028e463aa0306e2cd24cac58 (diff) | |
download | serenity-f6d0955a46d660bbcfabb1be292b0f405742a0f6.zip |
AK: Forbid creating StringView from temporary ByteBuffer
Diffstat (limited to 'AK')
-rw-r--r-- | AK/StringView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/StringView.h b/AK/StringView.h index f67bab6196..bcd7af8508 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -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; } |