From 4f258ea9e945a278e4914114f3e47329e309271e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2020 12:45:45 +0300 Subject: "return std::move" is evil --- src/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.cpp b/src/process.cpp index 7e3a9e7..1e0a970 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -52,7 +52,7 @@ Handle create_process(EscapedCommandLine cmd_line, Process::IO& io) { Handle process{child_info.hProcess}; Handle thread{child_info.hThread}; - return std::move(process); + return process; } EscapedCommandLine escape_command_line(const CommandLine& cmd_line) { -- cgit v1.2.3