summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-09-10 23:26:22 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-11 13:22:51 +0300
commitf6d0955a46d660bbcfabb1be292b0f405742a0f6 (patch)
tree3f7f0a16a5031494df71360896cbe8da6d7d3865 /AK
parente118ad3273b2fe49028e463aa0306e2cd24cac58 (diff)
downloadserenity-f6d0955a46d660bbcfabb1be292b0f405742a0f6.zip
AK: Forbid creating StringView from temporary ByteBuffer
Diffstat (limited to 'AK')
-rw-r--r--AK/StringView.h1
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; }