Skip to content

Commit

Permalink
Adding move
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Aug 20, 2023
1 parent ccfa69c commit 3ba16b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/property_graph_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ shared_ptr<PropertyGraphTable> PropertyGraphTable::Deserialize(Deserializer &des
pg_table->destination_reference = reader.ReadRequired<string>();
}
reader.Finalize();
return pg_table;
return std::move(pg_table);
}

shared_ptr<PropertyGraphTable> PropertyGraphTable::Copy() const {
Expand Down Expand Up @@ -296,7 +296,7 @@ shared_ptr<PropertyGraphTable> PropertyGraphTable::Copy() const {
for (auto &key : destination_pk) {
result->destination_pk.push_back(key);
}
return result;
return std::move(result);
}

} // namespace duckdb

0 comments on commit 3ba16b4

Please sign in to comment.