LibProtocol: Remove use of ByteBuffer::wrap() in protocol API

This commit is contained in:
Andreas Kling 2020-12-19 13:09:02 +01:00
commit 685d5f4e25
Notes: sideshowbarker 2024-07-19 00:44:46 +09:00
6 changed files with 10 additions and 10 deletions

View file

@ -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();