Being extra clear with move
This commit is contained in:
+2
-2
@@ -231,10 +231,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Attach handler for writable HTTP response */
|
/* Attach handler for writable HTTP response */
|
||||||
HttpResponse *onWritable(fu2::unique_function<bool(int)> handler) {
|
HttpResponse *onWritable(fu2::unique_function<bool(int)> &&handler) {
|
||||||
HttpResponseData<SSL> *httpResponseData = getHttpResponseData();
|
HttpResponseData<SSL> *httpResponseData = getHttpResponseData();
|
||||||
|
|
||||||
httpResponseData->onWritable = handler;
|
httpResponseData->onWritable = std::move(handler);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule uSockets updated: 2e6198067a...b876997844
Reference in New Issue
Block a user