do not use std::move in return

This commit is contained in:
VaclavT 2021-08-14 13:01:28 +02:00
parent e7252e856a
commit 0f586aab8a
1 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ std::unique_ptr<Table> USql::execute_select(SelectFromTableNode &node) {
execute_offset_limit(node.offset_limit, result.get());
return std::move(result);
return result;
}
void USql::execute_distinct(SelectFromTableNode &node, Table *result) {
@ -585,7 +585,7 @@ std::unique_ptr<Table> USql::create_stmt_result_table(long code, const std::stri
new_row.setIntColumnValue(2, affected_rows);
table_def->commit_row(new_row);
return std::move(table_def);
return table_def;
}