Index: net/tools/flip_server/output_ordering.cc |
diff --git a/net/tools/flip_server/output_ordering.cc b/net/tools/flip_server/output_ordering.cc |
index 409ec0a0ce538a6d55f55e26622466bb4ea24275..f5fb4cf2b9e6f870248e8c2629342328c19f96a1 100644 |
--- a/net/tools/flip_server/output_ordering.cc |
+++ b/net/tools/flip_server/output_ordering.cc |
@@ -95,7 +95,7 @@ void OutputOrdering::AddToOutputOrder(const MemCacheIter& mci) { |
double think_time_in_s = server_think_time_in_s_; |
std::string x_server_latency = |
mci.file_data->headers->GetHeader("X-Server-Latency").as_string(); |
- if (x_server_latency.size() != 0) { |
+ if (!x_server_latency.empty()) { |
char* endp; |
double tmp_think_time_in_s = strtod(x_server_latency.c_str(), &endp); |
if (endp != x_server_latency.c_str() + x_server_latency.size()) { |