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

Unified Diff: base/memory/scoped_vector.h

Issue 2234773002: base: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary formatting change Created 4 years, 4 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 | « base/ios/crb_protocol_observers.mm ('k') | base/scoped_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/scoped_vector.h
diff --git a/base/memory/scoped_vector.h b/base/memory/scoped_vector.h
index f3581eaa9bd0cafcc584033fd62e432eb4ca91fb..ebc2617cfb2f456ad4e0f14c8272c21e2866a4b7 100644
--- a/base/memory/scoped_vector.h
+++ b/base/memory/scoped_vector.h
@@ -89,7 +89,7 @@ class ScopedVector {
// Resize, deleting elements in the disappearing range if we are shrinking.
void resize(size_t new_size) {
if (v_.size() > new_size)
- STLDeleteContainerPointers(v_.begin() + new_size, v_.end());
+ base::STLDeleteContainerPointers(v_.begin() + new_size, v_.end());
v_.resize(new_size);
}
@@ -98,7 +98,7 @@ class ScopedVector {
v_.assign(begin, end);
}
- void clear() { STLDeleteElements(&v_); }
+ void clear() { base::STLDeleteElements(&v_); }
// Like |clear()|, but doesn't delete any elements.
void weak_clear() { v_.clear(); }
@@ -124,7 +124,7 @@ class ScopedVector {
}
iterator erase(iterator first, iterator last) {
- STLDeleteContainerPointers(first, last);
+ base::STLDeleteContainerPointers(first, last);
return v_.erase(first, last);
}
« no previous file with comments | « base/ios/crb_protocol_observers.mm ('k') | base/scoped_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698