mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Move the read bytes into ReadLoopReadRequest's success callback
The callback is already specified to take the bytes by value. No need to copy the bytes here.
This commit is contained in:
parent
dce05dd273
commit
46b8a3afb7
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/trflynn89
Commit: 46b8a3afb7
Pull-request: https://github.com/SerenityOS/serenity/pull/24179
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ void ReadLoopReadRequest::on_chunk(JS::Value chunk)
|
|||
void ReadLoopReadRequest::on_close()
|
||||
{
|
||||
// 1. Call successSteps with bytes.
|
||||
m_success_steps(m_bytes);
|
||||
m_success_steps(move(m_bytes));
|
||||
}
|
||||
|
||||
// error steps, given e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue