summaryrefslogtreecommitdiff
path: root/Applications/Browser/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-18 22:02:41 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-18 22:02:41 +0200
commitafb9ee2af82243c5156c29bd7fd2faf779c2bdfa (patch)
treedaf7510e2faa0625b902ad0e03dd418a36c8c766 /Applications/Browser/main.cpp
parent79eee65372ef18a8add85646f8263cdf69180b92 (diff)
downloadserenity-afb9ee2af82243c5156c29bd7fd2faf779c2bdfa.zip
Browser: Use URL::create_with_file_protocol() in one place
Diffstat (limited to 'Applications/Browser/main.cpp')
-rw-r--r--Applications/Browser/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index 80162fcb49..61b751a7e4 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -326,9 +326,7 @@ int main(int argc, char** argv)
if (app.args()[0].starts_with("file://")) {
url_to_load = URL(app.args()[0]);
} else {
- url_to_load = URL();
- url_to_load.set_protocol("file");
- url_to_load.set_path(app.args()[0]);
+ url_to_load = URL::create_with_file_protocol(app.args()[0]);
}
}