diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-09-11 10:40:47 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-11 13:22:51 +0300 |
commit | 9413dddb8b541fae2d2d3bc290556c1012dde4b3 (patch) | |
tree | 55c2db03e3dd82cd4c038e97955ad7b8c0b8745c /AK | |
parent | f6d0955a46d660bbcfabb1be292b0f405742a0f6 (diff) | |
download | serenity-9413dddb8b541fae2d2d3bc290556c1012dde4b3.zip |
AK: Forbid creating StringView from temporary FlyString
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 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; } |