From b103ccbfd76cebe72c6aac2c07b0bb646abbd7c6 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Thu, 14 Jan 2016 10:02:06 +0000 Subject: [PATCH] Remove std::move(...) so that copy ellision can occur. --- src/control.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control.cc b/src/control.cc index 5ac656b..f7c6541 100644 --- a/src/control.cc +++ b/src/control.cc @@ -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 -- 2.25.1