From: Davin McCall Date: Thu, 14 Jan 2016 10:02:06 +0000 (+0000) Subject: Remove std::move(...) so that copy ellision can occur. X-Git-Tag: v0.01~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b103ccbfd76cebe72c6aac2c07b0bb646abbd7c6;p=oweals%2Fdinit.git Remove std::move(...) so that copy ellision can occur. --- 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