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

Unified Diff: base/process_util_posix.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: base/process_util_posix.cc
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 9a5f5a7edd3c81656adadc023d153656085eae36..cf93c054e05f20f2a7459071466f59f93a8f6eed 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -451,7 +451,7 @@ char** AlterEnvironment(const environment_vector& changes,
// Now handle new elements
for (environment_vector::const_iterator
j = changes.begin(); j != changes.end(); j++) {
- if (j->second.size() == 0)
+ if (j->second.empty())
continue;
bool found = false;

Powered by Google App Engine
This is Rietveld 408576698