summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-09-11 10:40:47 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2021-09-11 13:22:51 +0300
commit9413dddb8b541fae2d2d3bc290556c1012dde4b3 (patch)
tree55c2db03e3dd82cd4c038e97955ad7b8c0b8745c /AK
parentf6d0955a46d660bbcfabb1be292b0f405742a0f6 (diff)
downloadserenity-9413dddb8b541fae2d2d3bc290556c1012dde4b3.zip
AK: Forbid creating StringView from temporary FlyString
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 bcd7af8508..ba87d2c0c1 100644
--- a/AK/StringView.h
+++ b/AK/StringView.h
@@ -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; }