mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Disallow String::from_utf8 on FlyString and String
This commit is contained in:
parent
6ce0d588ee
commit
5f2f26451d
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/5f2f26451d Pull-request: https://github.com/SerenityOS/serenity/pull/22231
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public:
|
|||
// Creates a new String from a sequence of UTF-8 encoded code points.
|
||||
static ErrorOr<String> 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;
|
||||
|
||||
// Creates a new String by reading byte_count bytes from a UTF-8 encoded Stream.
|
||||
|
|
Loading…
Reference in a new issue