mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 13:33:02 +08:00
Use a std::move in expand_cmdsubst
Save an unnecessary allocation.
This commit is contained in:
parent
fa665bd3c8
commit
e6737d5775
|
@ -649,7 +649,7 @@ static bool expand_cmdsubst(const wcstring &input, std::vector<completion_t> *ou
|
|||
// sub_res, idx ), idx );
|
||||
// sub_res[idx] = 0; // ??
|
||||
}
|
||||
sub_res = sub_res2;
|
||||
sub_res = std::move(sub_res2);
|
||||
}
|
||||
|
||||
// Recursively call ourselves to expand any remaining command substitutions. The result of this
|
||||
|
|
Loading…
Reference in New Issue
Block a user