Skip to content

Commit

Permalink
less bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed Jan 31, 2022
1 parent e3a9692 commit 033da4a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions google/cloud/bigtable/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,8 @@ class Table {
*/
Table WithNewTarget(std::string project_id, std::string instance_id,
std::string table_id) const {
auto table = *this;
table.instance_id_ = std::move(instance_id);
table.project_id_ = std::move(project_id);
table.table_id_ = std::move(table_id);
table.table_name_ =
TableName(table.project_id_, table.instance_id_, table.table_id_);
table.metadata_update_policy_ =
MetadataUpdatePolicy(table.table_name_, MetadataParamTypes::TABLE_NAME);
return table;
return WithNewTarget(std::move(project_id), std::move(instance_id),
app_profile_id_, std::move(table_id));
}

/**
Expand Down

0 comments on commit 033da4a

Please sign in to comment.