Skip to content

Commit d6cdb47

Browse files
drona-gyawaliscotthart
authored andcommitted
feat(bigtable): place the code after IsEmptyRowKey()
1 parent 1de52d9 commit d6cdb47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

google/cloud/bigtable/internal/google_bytes_traits.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ namespace internal {
3838
/// Return true if the row key is empty.
3939
inline bool IsEmptyRowKey(std::string const& key) { return key.empty(); }
4040

41-
/// Clear the row key.
42-
inline void Clear(std::string& key) { key.clear(); }
43-
4441
/// Return true if the row key is empty.
4542
inline bool IsEmptyRowKey(char const* key) { return std::string{} == key; }
4643

44+
/// Clear the row key.
45+
inline void Clear(std::string& key) { key.clear(); }
46+
4747
#if GOOGLE_CLOUD_CPP_CPP_VERSION >= 201703L
4848
/// Return true if the row key is empty.
4949
inline bool IsEmptyRowKey(std::string_view key) { return key.empty(); }

0 commit comments

Comments
 (0)