Use a std::move in expand_cmdsubst

Save an unnecessary allocation.
This commit is contained in:
ridiculousfish 2018-06-16 11:40:59 -07:00
parent fa665bd3c8
commit e6737d5775

View File

@ -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