Remove std::move(...) so that copy ellision can occur.
authorDavin McCall <davmac@davmac.org>
Thu, 14 Jan 2016 10:02:06 +0000 (10:02 +0000)
committerDavin McCall <davmac@davmac.org>
Thu, 14 Jan 2016 10:02:06 +0000 (10:02 +0000)
src/control.cc

index 5ac656b0cb5171f118844624d7a1efe1ca2342f1..f7c654119b6f9d4dc04fa217d3d81d553150e305 100644 (file)
@@ -90,7 +90,7 @@ void ControlConn::processFindLoad(int pktType)
     
     ServiceRecord * record = nullptr;
     
-    string serviceName = std::move(rbuf.extract_string(3, svcSize));
+    string serviceName = rbuf.extract_string(3, svcSize);
     
     if (pktType == DINIT_CP_LOADSERVICE) {
         // LOADSERVICE