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

Unified Diff: media/base/composite_filter.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 | « jingle/notifier/communicator/connection_settings.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/composite_filter.cc
diff --git a/media/base/composite_filter.cc b/media/base/composite_filter.cc
index 41eb31c6382d2b8b2e0f4914c2c9924ccb33764d..7d260353cdbbf5ae0a23d54b9f1185212461d0f0 100644
--- a/media/base/composite_filter.cc
+++ b/media/base/composite_filter.cc
@@ -234,7 +234,7 @@ void CompositeFilter::StartSerialCallSequence() {
DCHECK_EQ(message_loop_, MessageLoop::current());
error_ = PIPELINE_OK;
- if (filters_.size() > 0) {
+ if (!filters_.empty()) {
sequence_index_ = 0;
CallFilter(filters_[sequence_index_],
NewThreadSafeCallback(&CompositeFilter::SerialCallback));
@@ -248,7 +248,7 @@ void CompositeFilter::StartParallelCallSequence() {
DCHECK_EQ(message_loop_, MessageLoop::current());
error_ = PIPELINE_OK;
- if (filters_.size() > 0) {
+ if (!filters_.empty()) {
sequence_index_ = 0;
for (size_t i = 0; i < filters_.size(); i++) {
CallFilter(filters_[i],
@@ -340,7 +340,7 @@ void CompositeFilter::SerialCallback() {
return;
}
- if (filters_.size() > 0)
+ if (!filters_.empty())
sequence_index_++;
if (sequence_index_ == filters_.size()) {
@@ -360,7 +360,7 @@ void CompositeFilter::SerialCallback() {
void CompositeFilter::ParallelCallback() {
DCHECK_EQ(message_loop_, MessageLoop::current());
- if (filters_.size() > 0)
+ if (!filters_.empty())
sequence_index_++;
if (sequence_index_ == filters_.size()) {
« no previous file with comments | « jingle/notifier/communicator/connection_settings.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698