Being extra clear with move

This commit is contained in:
Alex Hultman
2019-01-15 08:09:50 +01:00
parent 95cafc2c7b
commit 0ca061e772
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -231,10 +231,10 @@ public:
}
/* 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->onWritable = handler;
httpResponseData->onWritable = std::move(handler);
return this;
}