diff --git a/AK/DeprecatedString.h b/AK/DeprecatedString.h index 21952cd4b2..72cecc95a4 100644 --- a/AK/DeprecatedString.h +++ b/AK/DeprecatedString.h @@ -95,6 +95,7 @@ public: DeprecatedString(DeprecatedFlyString const&); static ErrorOr from_utf8(ReadonlyBytes); + static ErrorOr from_utf8(StringView string) { return from_utf8(string.bytes()); } [[nodiscard]] static DeprecatedString repeated(char, size_t count); [[nodiscard]] static DeprecatedString repeated(StringView, size_t count);