Skip to content

Commit 789e716

Browse files
authored
Merge pull request #3848 from BsAtHome/fix_move-unnecessary
Remove pessimizing std::move
2 parents 349df77 + cd789a2 commit 789e716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emc/usr_intf/emcrsh.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,7 @@ static int parseCommand(connectionRecType &ctx, std::string &line)
33023302
// Save the rest of the string as possible filename
33033303
ctx.third = line.substr(lft);
33043304
}
3305-
ctx.toks.push_back(std::move(line.substr(lft, rgt - lft)));
3305+
ctx.toks.push_back(line.substr(lft, rgt - lft));
33063306
pos = rgt;
33073307
}
33083308

0 commit comments

Comments
 (0)