Commit 6c1a76af authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: Use std::move for remote_endpoint assignment

parent 19146211
...@@ -59,7 +59,7 @@ const boost::asio::ip::tcp::endpoint &request_impl::remote_endpoint() const { ...@@ -59,7 +59,7 @@ const boost::asio::ip::tcp::endpoint &request_impl::remote_endpoint() const {
} }
void request_impl::remote_endpoint(boost::asio::ip::tcp::endpoint ep) { void request_impl::remote_endpoint(boost::asio::ip::tcp::endpoint ep) {
remote_ep_ = ep; remote_ep_ = std::move(ep);
} }
} // namespace server } // namespace server
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment