mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +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:
committed by
Andreas Kling
parent
dce05dd273
commit
46b8a3afb7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user