diff options
author | Nan Zhou <nanzhoumails@gmail.com> | 2022-08-02 21:38:18 +0300 |
---|---|---|
committer | Nan Zhou <nanzhoumails@gmail.com> | 2022-08-02 21:38:22 +0300 |
commit | d9049df1b85c7163047db6a18660a8cd6ddf9c3d (patch) | |
tree | ad1b678e074fb77fcfaafb999934488dc822c949 /http/app.hpp | |
parent | a1e0871d2425b3f42d0e5893d548593e5ed576bb (diff) | |
download | bmcweb-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.hpp | 7 |
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(); |