mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
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.
This commit is contained in:
parent
8af65108e4
commit
abc01cc9fe
5 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue