summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2023-04-11 14:53:40 +0200
committerLinus Groh <mail@linusgroh.de>2023-04-11 16:28:20 +0200
commit9915fa72fbb161526616f4ff485a112fecd1f59c (patch)
tree82a30b3d2f770db2111e8b4d28aed8e6909eae1d /Userland/Utilities
parent38bdf4d159e6891b07c3a59dd274b9d18f3af0b5 (diff)
downloadserenity-9915fa72fbb161526616f4ff485a112fecd1f59c.zip
AK+Everywhere: Use Optional for URLParser::parse's base_url parameter
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/xml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/xml.cpp b/Userland/Utilities/xml.cpp
index 95e5800946..40c0316b77 100644
--- a/Userland/Utilities/xml.cpp
+++ b/Userland/Utilities/xml.cpp
@@ -364,7 +364,7 @@ static auto parse(StringView contents)
.preserve_comments = true,
.resolve_external_resource = [&](XML::SystemID const& system_id, Optional<XML::PublicID> const&) -> ErrorOr<DeprecatedString> {
auto base = URL::create_with_file_scheme(s_path);
- auto url = URLParser::parse(system_id.system_literal, &base);
+ auto url = URLParser::parse(system_id.system_literal, base);
if (!url.is_valid())
return Error::from_string_literal("Invalid URL");