summaryrefslogtreecommitdiff
path: root/http/app.hpp
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-08-02 21:38:18 +0300
committerNan Zhou <nanzhoumails@gmail.com>2022-08-02 21:38:22 +0300
commitd9049df1b85c7163047db6a18660a8cd6ddf9c3d (patch)
treead1b678e074fb77fcfaafb999934488dc822c949 /http/app.hpp
parenta1e0871d2425b3f42d0e5893d548593e5ed576bb (diff)
downloadbmcweb-d9049df1b85c7163047db6a18660a8cd6ddf9c3d.tar.xz
app: fix -Wpessimizing-move
clang14 doesn't compile because of "moving a temporary object prevents copy elision". This also alligns the plaintext socket with style of SSL socket. Tested: trivial change. It builds. Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I9203cf162d738290306f9ba73ec0ab8f2ca5033c
Diffstat (limited to 'http/app.hpp')
-rw-r--r--http/app.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/http/app.hpp b/http/app.hpp
index 18147e4f91..d3afe60f05 100644
--- a/http/app.hpp
+++ b/http/app.hpp
@@ -123,13 +123,12 @@ class App
if (-1 == socketFd)
{
- server = std::move(std::make_unique<server_t>(
- this, bindaddrStr, portUint, nullptr, io));
+ server = std::make_unique<server_t>(this, bindaddrStr, portUint,
+ nullptr, io);
}
else
{
- server = std::move(
- std::make_unique<server_t>(this, socketFd, nullptr, io));
+ server = std::make_unique<server_t>(this, socketFd, nullptr, io);
}
server->run();