diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-06-05 11:59:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-06 16:00:11 +0200 |
commit | 30cdebfa9ef1c466484de997391b66f742f4b85b (patch) | |
tree | 86e52ebbd55135d4e27701b9a6bd341c36232c3e /Userland/Applications | |
parent | 5b5f7bc360f3ec487ed6a21c350b7ca4ae165d17 (diff) | |
download | serenity-30cdebfa9ef1c466484de997391b66f742f4b85b.zip |
LibProtocol: Use URL class in RequestClient::start_request argument
This changes the RequestClient::start_request() method to take a URL
object instead of a URL string as argument. All callers of the method
already had a URL object anyway, and start_request() in turn parses the
URL string back into a URL object. This removes this unnecessary
conversion.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Browser/DownloadWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Browser/DownloadWidget.cpp b/Userland/Applications/Browser/DownloadWidget.cpp index cec8b57c78..6f3f41d395 100644 --- a/Userland/Applications/Browser/DownloadWidget.cpp +++ b/Userland/Applications/Browser/DownloadWidget.cpp @@ -36,7 +36,7 @@ DownloadWidget::DownloadWidget(const URL& url) } m_elapsed_timer.start(); - m_download = Web::ResourceLoader::the().protocol_client().start_request("GET", url.to_string()); + m_download = Web::ResourceLoader::the().protocol_client().start_request("GET", url); VERIFY(m_download); m_download->on_progress = [this](Optional<u32> total_size, u32 downloaded_size) { did_progress(total_size.value(), downloaded_size); |