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()) { |