do not use std::move in return
This commit is contained in:
parent
e7252e856a
commit
0f586aab8a
4
usql.cpp
4
usql.cpp
|
|
@ -219,7 +219,7 @@ std::unique_ptr<Table> USql::execute_select(SelectFromTableNode &node) {
|
||||||
|
|
||||||
execute_offset_limit(node.offset_limit, result.get());
|
execute_offset_limit(node.offset_limit, result.get());
|
||||||
|
|
||||||
return std::move(result);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void USql::execute_distinct(SelectFromTableNode &node, Table *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);
|
new_row.setIntColumnValue(2, affected_rows);
|
||||||
table_def->commit_row(new_row);
|
table_def->commit_row(new_row);
|
||||||
|
|
||||||
return std::move(table_def);
|
return table_def;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue