diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 00:03:18 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 00:03:18 +0000 |
commit | f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3 (patch) | |
tree | 840cfc698d0c1287ef8802ca9a564ae7abdd0f13 /o3d/plugin | |
parent | 9ad77099038a76c96f6c4d162fb0706426215a5f (diff) | |
download | chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.zip chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.tar.gz chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.tar.bz2 |
Pure pedantry: Replace all ".size() == 0" with ".empty()".
BUG=carnitas
TEST=compiles; existing unit tests.
Review URL: http://codereview.chromium.org/6602049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin')
-rw-r--r-- | o3d/plugin/cross/stream_manager.cc | 2 | ||||
-rw-r--r-- | o3d/plugin/idl/bounding_box.idl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/o3d/plugin/cross/stream_manager.cc b/o3d/plugin/cross/stream_manager.cc index 48da1c1..783b114 100644 --- a/o3d/plugin/cross/stream_manager.cc +++ b/o3d/plugin/cross/stream_manager.cc @@ -310,7 +310,7 @@ bool StreamManager::NPDownloadStream::URLNotify(NPReason reason) { // Note that the streaming case (NP_NORMAL) does not get a file // so we can't check its size if ((reason != NPRES_DONE) || - (stream_type_ != NP_NORMAL && file_.size() == 0)) { + (stream_type_ != NP_NORMAL && file_.empty())) { // finished_callback should only be called once. finished_callback_->Run(this, false, "", ""); finished_callback_.reset(NULL); diff --git a/o3d/plugin/idl/bounding_box.idl b/o3d/plugin/idl/bounding_box.idl index 9a5cc82..23e5d88 100644 --- a/o3d/plugin/idl/bounding_box.idl +++ b/o3d/plugin/idl/bounding_box.idl @@ -135,7 +135,7 @@ class BoundingBox { void* plugin_data, o3d::BoundingBox* _this, const std::vector<std::vector<float> >& values) { - if (values.size() == 0) { + if (values.empty()) { *_this = o3d::BoundingBox(); } else if (values.size() != 2) { o3d::ServiceLocator* service_locator = |