Index: webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
index 319a97bfcaa749703545f8da61beec7b5e9fe5b6..de13023b2640763e6c5c5064ee3102d578acfb80 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.cc |
@@ -116,9 +116,9 @@ Logging::State::State(const std::string& tag, int64_t timestamp_ms, |
} |
void Logging::State::MergePrevious(const State& previous) { |
- if (tag == "") { |
+ if (tag.empty()) { |
tag = previous.tag; |
- } else if (previous.tag != "") { |
+ } else if (!previous.tag.empty()) { |
tag = previous.tag + "_" + tag; |
} |
timestamp_ms = std::max(previous.timestamp_ms, timestamp_ms); |