1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 21:10:01 +00:00

AK: Disallow calling FlyString::from_utf8 on FlyString and String

This commit is contained in:
Shannon Booth 2023-12-10 16:19:33 +13:00 committed by Andreas Kling
parent 74b6e7b1f0
commit 73f7f33205

View File

@ -22,7 +22,7 @@ public:
static ErrorOr<FlyString> from_utf8(StringView);
template<typename T>
requires(IsOneOf<RemoveCVReference<T>, DeprecatedString, DeprecatedFlyString>)
requires(IsOneOf<RemoveCVReference<T>, DeprecatedString, DeprecatedFlyString, FlyString, String>)
static ErrorOr<String> from_utf8(T&&) = delete;
FlyString(String const&);