Skip to content

Commit 56ef0ed

Browse files
authored
cleanup: be careful with the type of bigtable::Cell::value() (#4317)
Do not assume that `google::cloud::bigtable::CellValueType` can be directly converted to a `std::string`. Here we just use `auto` to avoid mentioning a specific type altogether.
1 parent fcc3103 commit 56ef0ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google/cloud/bigtable/cell_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ TEST(CellTest, RValueRefAccessors) {
8686
"Member function `value` is expected to return a value from an r-value "
8787
"reference to row.");
8888

89-
std::string moved_value = std::move(cell).value();
90-
89+
auto moved_value = std::move(cell).value();
9190
EXPECT_EQ(value, moved_value);
9291
}

0 commit comments

Comments
 (0)