From 0ca061e7727df4fcc0c840e67188e093f966e7d3 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Tue, 15 Jan 2019 08:09:50 +0100 Subject: [PATCH] Being extra clear with move --- src/HttpResponse.h | 4 ++-- uSockets | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HttpResponse.h b/src/HttpResponse.h index 691caf1..dd3dd5f 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -231,10 +231,10 @@ public: } /* Attach handler for writable HTTP response */ - HttpResponse *onWritable(fu2::unique_function handler) { + HttpResponse *onWritable(fu2::unique_function &&handler) { HttpResponseData *httpResponseData = getHttpResponseData(); - httpResponseData->onWritable = handler; + httpResponseData->onWritable = std::move(handler); return this; } diff --git a/uSockets b/uSockets index 2e61980..b876997 160000 --- a/uSockets +++ b/uSockets @@ -1 +1 @@ -Subproject commit 2e6198067a8702f51e87e64709b98c0c9ca0fa2f +Subproject commit b8769978449f9509314cd7b6b981e630ff312a21