Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: net/tools/flip_server/split.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/tools/flip_server/split.cc
diff --git a/net/tools/flip_server/split.cc b/net/tools/flip_server/split.cc
index 6ab50cf785941978602aec9f779e88b94dcac913..2d8659acad1b3c46e73c464058e12cdf0e72888d 100644
--- a/net/tools/flip_server/split.cc
+++ b/net/tools/flip_server/split.cc
@@ -19,7 +19,7 @@ void SplitStringPieceToVector(const base::StringPiece& full,
std::vector<base::StringPiece>* vec,
bool omit_empty_strings) {
vec->clear();
- if (full.size() == 0 || delim[0] == '\0')
+ if (full.empty() || delim[0] == '\0')
return;
if (delim[1] == '\0') {

Powered by Google App Engine
This is Rietveld 408576698