diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-19 13:09:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-19 13:09:02 +0100 |
commit | 685d5f4e25c314e0acb6d0da17ed5f3f8fdf31da (patch) | |
tree | 0cc783182de7ee6972aeb962ce91b24915d7bf9b /Libraries/LibWeb | |
parent | 77515fead23dc135ec572a302b0b864adda9a09e (diff) | |
download | serenity-685d5f4e25c314e0acb6d0da17ed5f3f8fdf31da.zip |
LibProtocol: Remove use of ByteBuffer::wrap() in protocol API
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/Loader/ResourceLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Libraries/LibWeb/Loader/ResourceLoader.cpp index 897c684ecb..53dbd60d7f 100644 --- a/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -170,7 +170,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(const ByteBu error_callback("Failed to initiate load"); return; } - download->on_finish = [this, success_callback = move(success_callback), error_callback = move(error_callback)](bool success, const ByteBuffer& payload, auto, auto& response_headers, auto status_code) { + download->on_finish = [this, success_callback = move(success_callback), error_callback = move(error_callback)](bool success, ReadonlyBytes payload, auto, auto& response_headers, auto status_code) { --m_pending_loads; if (on_load_counter_change) on_load_counter_change(); |