mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-21 02:54:17 +08:00
Use std::move to populate a processes's args
This could save quite a few string copies.
This commit is contained in:
parent
4a6d622733
commit
2ed0105692
|
@ -911,7 +911,7 @@ end_execution_reason_t parse_execution_context_t::populate_plain_process(
|
|||
|
||||
// Populate the process.
|
||||
proc->type = process_type;
|
||||
proc->set_argv(cmd_args);
|
||||
proc->set_argv(std::move(cmd_args));
|
||||
proc->set_redirection_specs(std::move(redirections));
|
||||
proc->actual_cmd = std::move(path_to_external_command);
|
||||
return end_execution_reason_t::ok;
|
||||
|
|
Loading…
Reference in New Issue
Block a user