From d78365f785efd46d6111f5f60c3179bdfe699254 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 28 Nov 2021 22:40:22 +0100 Subject: [PATCH] LibGemini: Avoid implicitly copying ByteBuffer --- Userland/Libraries/LibGemini/Job.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGemini/Job.cpp b/Userland/Libraries/LibGemini/Job.cpp index 7002fc0ed2b..ed9aec3f89c 100644 --- a/Userland/Libraries/LibGemini/Job.cpp +++ b/Userland/Libraries/LibGemini/Job.cpp @@ -122,8 +122,8 @@ void Job::on_socket_connected() } } - m_received_buffers.append(payload); m_received_size += payload.size(); + m_received_buffers.append(move(payload)); flush_received_buffers(); deferred_invoke([this] { did_progress({}, m_received_size); });