diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-13 17:42:27 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-02-15 12:48:26 -0500 |
commit | abc01cc9fe45e7cfff195244773d1ddbeeea7c8d (patch) | |
tree | 83c9a6366d9a94d3bfb0fe982fbcb23f81fd4a2f /AK/URL.cpp | |
parent | 8af65108e4cff13993cd69d74b44acd5d3e9ee32 (diff) | |
download | serenity-abc01cc9fe45e7cfff195244773d1ddbeeea7c8d.zip |
AK+Tests+LibWeb: Make `URL::complete_url()` take a StringView
All it does is pass this to `URLParser::parse()` which takes a
StringView, so we might as well take one here too.
Diffstat (limited to 'AK/URL.cpp')
-rw-r--r-- | AK/URL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/URL.cpp b/AK/URL.cpp index bf0acc0dfe..303b9a7356 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -39,12 +39,12 @@ DeprecatedString URL::path() const return builder.to_deprecated_string(); } -URL URL::complete_url(DeprecatedString const& string) const +URL URL::complete_url(StringView relative_url) const { if (!is_valid()) return {}; - return URLParser::parse(string, this); + return URLParser::parse(relative_url, this); } void URL::set_scheme(DeprecatedString scheme) |