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

Unified Diff: third_party/WebKit/Source/wtf/Deque.h

Issue 2747373004: Migrate WTF::Deque::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/Source/wtf/Deque.h
diff --git a/third_party/WebKit/Source/wtf/Deque.h b/third_party/WebKit/Source/wtf/Deque.h
index c7c2251c1aa387ce975568ba47b00809a44a25d7..aaed1c94fb027fe3ab811d1ff8c96fb09c2ef1eb 100644
--- a/third_party/WebKit/Source/wtf/Deque.h
+++ b/third_party/WebKit/Source/wtf/Deque.h
@@ -127,8 +127,8 @@ class Deque : public ConditionalDestructor<Deque<T, INLINE_CAPACITY, Allocator>,
template <typename U>
void prepend(U&&);
- void remove(iterator&);
- void remove(const_iterator&);
+ void erase(iterator&);
+ void erase(const_iterator&);
// STL compatibility.
template <typename U>
@@ -183,7 +183,7 @@ class Deque : public ConditionalDestructor<Deque<T, INLINE_CAPACITY, Allocator>,
typedef VectorTypeOperations<T> TypeOperations;
typedef DequeIteratorBase<T, inlineCapacity, Allocator> IteratorBase;
- void remove(size_t position);
+ void erase(size_t position);
void destroyAll();
void expandCapacityIfNeeded();
void expandCapacity();
@@ -565,17 +565,17 @@ inline void Deque<T, inlineCapacity, Allocator>::pop_back() {
}
template <typename T, size_t inlineCapacity, typename Allocator>
-inline void Deque<T, inlineCapacity, Allocator>::remove(iterator& it) {
- remove(it.m_index);
+inline void Deque<T, inlineCapacity, Allocator>::erase(iterator& it) {
+ erase(it.m_index);
}
template <typename T, size_t inlineCapacity, typename Allocator>
-inline void Deque<T, inlineCapacity, Allocator>::remove(const_iterator& it) {
- remove(it.m_index);
+inline void Deque<T, inlineCapacity, Allocator>::erase(const_iterator& it) {
+ erase(it.m_index);
}
template <typename T, size_t inlineCapacity, typename Allocator>
-inline void Deque<T, inlineCapacity, Allocator>::remove(size_t position) {
+inline void Deque<T, inlineCapacity, Allocator>::erase(size_t position) {
if (position == m_end)
return;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp ('k') | third_party/WebKit/Source/wtf/DequeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698