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

Unified Diff: o3d/utils/cross/text_reader.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: o3d/utils/cross/text_reader.cc
diff --git a/o3d/utils/cross/text_reader.cc b/o3d/utils/cross/text_reader.cc
index dccbffaabdd4b6612710aee53dc9d5d8efa08609..c6f1e5695e50e7d78dfb32babda4e50741fcb61e 100644
--- a/o3d/utils/cross/text_reader.cc
+++ b/o3d/utils/cross/text_reader.cc
@@ -48,7 +48,7 @@ TextReader::~TextReader() {
}
int TextReader::TestForEndOfLine(const std::string& eol) {
- if (eol.size() == 0) {
+ if (eol.empty()) {
Peter Kasting 2011/03/02 00:02:42 Nit: Eliminate anonymous namespace of consts and c
return 0;
}
if (eol[0] == kLinefeed) {

Powered by Google App Engine
This is Rietveld 408576698