mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Problem: argument is unnecessarily copied
Solution: move instead
This commit is contained in:
parent
995e0a3a26
commit
0c363fbb76
@ -556,7 +556,7 @@ void zmq::pipe_t::send_hwms_to_peer (int inhwm_, int outhwm_)
|
|||||||
|
|
||||||
void zmq::pipe_t::set_endpoint_pair (zmq::endpoint_uri_pair_t endpoint_pair_)
|
void zmq::pipe_t::set_endpoint_pair (zmq::endpoint_uri_pair_t endpoint_pair_)
|
||||||
{
|
{
|
||||||
_endpoint_pair = endpoint_pair_;
|
_endpoint_pair = ZMQ_MOVE (endpoint_pair_);
|
||||||
}
|
}
|
||||||
|
|
||||||
const zmq::endpoint_uri_pair_t &zmq::pipe_t::get_endpoint_pair () const
|
const zmq::endpoint_uri_pair_t &zmq::pipe_t::get_endpoint_pair () const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user