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

Unified Diff: base/file_path.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/file_path.cc
diff --git a/base/file_path.cc b/base/file_path.cc
index 5f1375adb5b8e9c98942bc69a474a8761d7682bb..1b1b36a7a62ac165f0671dec8b3b46cdf0b0e744 100644
--- a/base/file_path.cc
+++ b/base/file_path.cc
@@ -251,7 +251,7 @@ bool FilePath::AppendRelativePath(const FilePath& child,
if (parent_components.size() >= child_components.size())
Peter Kasting 2011/03/02 00:02:42 Nit: Seems like these could be combined
return false;
- if (parent_components.size() == 0)
+ if (parent_components.empty())
return false;
std::vector<StringType>::const_iterator parent_comp =

Powered by Google App Engine
This is Rietveld 408576698