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

Unified Diff: courgette/encoded_program.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits 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
« no previous file with comments | « courgette/adjustment_method.cc ('k') | jingle/notifier/communicator/connection_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/encoded_program.cc
diff --git a/courgette/encoded_program.cc b/courgette/encoded_program.cc
index 8439d318d3a47a952b05676a15787bb7ce36a979..5169c16c8b56104ec74d15b107249f6db02088e4 100644
--- a/courgette/encoded_program.cc
+++ b/courgette/encoded_program.cc
@@ -195,7 +195,7 @@ void EncodedProgram::AddCopy(uint32 count, const void* bytes) {
// For compression of files with large differences this makes a small (4%)
// improvement in size. For files with small differences this degrades the
// compressed size by 1.3%
- if (ops_.size() > 0) {
+ if (!ops_.empty()) {
if (ops_.back() == COPY1) {
ops_.back() = COPY;
copy_counts_.push_back(1);
« no previous file with comments | « courgette/adjustment_method.cc ('k') | jingle/notifier/communicator/connection_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698