projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
890836c
)
Remove std::move(...) so that copy ellision can occur.
author
Davin McCall
<davmac@davmac.org>
Thu, 14 Jan 2016 10:02:06 +0000
(10:02 +0000)
committer
Davin McCall
<davmac@davmac.org>
Thu, 14 Jan 2016 10:02:06 +0000
(10:02 +0000)
src/control.cc
patch
|
blob
|
history
diff --git
a/src/control.cc
b/src/control.cc
index 5ac656b0cb5171f118844624d7a1efe1ca2342f1..f7c654119b6f9d4dc04fa217d3d81d553150e305 100644
(file)
--- 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