summaryrefslogtreecommitdiff
path: root/AK/URL.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-13 17:42:27 +0000
committerTim Flynn <trflynn89@pm.me>2023-02-15 12:48:26 -0500
commitabc01cc9fe45e7cfff195244773d1ddbeeea7c8d (patch)
tree83c9a6366d9a94d3bfb0fe982fbcb23f81fd4a2f /AK/URL.cpp
parent8af65108e4cff13993cd69d74b44acd5d3e9ee32 (diff)
downloadserenity-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.cpp4
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)