Add some uses of std::move in constructors and simple functions for pass-by-value arguments

This commit is contained in:
Tim Wojtulewicz 2023-11-27 11:41:48 -07:00
parent 1e33467844
commit ef5b169acd
9 changed files with 15 additions and 14 deletions

View file

@ -3057,7 +3057,7 @@ ListExprPtr expand_op(ListExprPtr op, const TypePtr& t) {
TableConstructorExpr::TableConstructorExpr(ListExprPtr constructor_list,
std::unique_ptr<std::vector<AttrPtr>> arg_attrs, TypePtr arg_type,
AttributesPtr arg_attrs2)
: UnaryExpr(EXPR_TABLE_CONSTRUCTOR, expand_op(constructor_list, arg_type)) {
: UnaryExpr(EXPR_TABLE_CONSTRUCTOR, expand_op(std::move(constructor_list), arg_type)) {
if ( IsError() )
return;