diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-29 21:44:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-29 21:44:11 +0300 |
commit | 337a52a41ea44570da65586403f14248042f0169 (patch) | |
tree | 27f58dd5f9c9f50310c94c649595a9e7f8e00455 /src/net | |
parent | 36c45ae7d8d2577a900ec266b64448d4b488013d (diff) | |
download | plus-337a52a41ea44570da65586403f14248042f0169.tar.gz plus-337a52a41ea44570da65586403f14248042f0169.tar.bz2 plus-337a52a41ea44570da65586403f14248042f0169.tar.xz plus-337a52a41ea44570da65586403f14248042f0169.zip |
Use std::move in some places.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/playerrecv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp index 93108b39d..edc604907 100644 --- a/src/net/ea/playerrecv.cpp +++ b/src/net/ea/playerrecv.cpp @@ -44,6 +44,7 @@ #include "net/playerhandler.h" +#include "utils/stdmove.h" #include "utils/stringutils.h" #include "debug.h" @@ -256,7 +257,7 @@ void PlayerRecv::processPlayerClientCommand(Net::MessageIn &msg) if (!parse2Str(command, cmd, args)) { - cmd = command; + cmd = STD_MOVE(command); args.clear(); } inputManager.executeRemoteChatCommand(cmd, args, nullptr); |