From 0c363fbb76ecb197a9d88e8d94bf840f2d58ed4a Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Fri, 1 Mar 2019 05:24:05 -0500 Subject: [PATCH] Problem: argument is unnecessarily copied Solution: move instead --- src/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipe.cpp b/src/pipe.cpp index bcf1cff5..c8e834ff 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -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_) { - _endpoint_pair = endpoint_pair_; + _endpoint_pair = ZMQ_MOVE (endpoint_pair_); } const zmq::endpoint_uri_pair_t &zmq::pipe_t::get_endpoint_pair () const