mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Disallow calling FlyString::from_utf8 on FlyString and String
This commit is contained in:
parent
74b6e7b1f0
commit
73f7f33205
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/73f7f33205 Pull-request: https://github.com/SerenityOS/serenity/pull/22231
1 changed files with 1 additions and 1 deletions
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue