diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-30 15:46:03 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-30 15:46:03 +0000 |
commit | 3cb676a1c13680f2b6695f871d857e2dd060fa8c (patch) | |
tree | edb4a79fa006b4887e1f48d3fd9e7886e8c8a89b /chrome/installer/util/installer_state.cc | |
parent | 96e839e18c3b0b89599273e5dea23a4efffadbb5 (diff) | |
download | chromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.zip chromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.tar.gz chromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.tar.bz2 |
base: Remove dereference structure operator (i.e ->) from ScopedVector.
BUG=128663
R=brettw@chromium.org,willchan@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10669038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/installer_state.cc')
-rw-r--r-- | chrome/installer/util/installer_state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/installer/util/installer_state.cc b/chrome/installer/util/installer_state.cc index bbf3a33..24572be 100644 --- a/chrome/installer/util/installer_state.cc +++ b/chrome/installer/util/installer_state.cc @@ -285,7 +285,7 @@ Product* InstallerState::AddProductInDirectory(const FilePath* product_dir, state_key_ = the_product.distribution()->GetStateKey(); products_.push_back(product->release()); - return products_[products_->size() - 1]; + return products_[products_.size() - 1]; } Product* InstallerState::AddProduct(scoped_ptr<Product>* product) { @@ -350,7 +350,7 @@ bool InstallerState::RemoveProduct(const Product* product) { ScopedVector<Product>::iterator it = std::find(products_.begin(), products_.end(), product); if (it != products_.end()) { - products_->erase(it); + products_.weak_erase(it); return true; } return false; |