diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:03:47 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:03:47 +0000 |
commit | 6775e40aeb887f15dc9182b250cdc4100aa79ce0 (patch) | |
tree | 858e3064689861a9ad85975154ce653418aaf3d8 /media | |
parent | 5bd8d1716b3f27664348c7fcb2c33f2e3a4573a7 (diff) | |
download | chromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.zip chromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.tar.gz chromium_src-6775e40aeb887f15dc9182b250cdc4100aa79ce0.tar.bz2 |
Change other usages of .size() to .empty() when applicable.
BUG=carnitas
TEST=compiles
Review URL: http://codereview.chromium.org/6609008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/composite_filter.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/base/composite_filter.cc b/media/base/composite_filter.cc index 41eb31c..7d26035 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()) { |