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

Unified Diff: third_party/WebKit/Source/platform/wtf/LinkedHashSet.h

Issue 2796413003: Migrate WTF::HashTable::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 8 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/platform/wtf/LinkedHashSet.h
diff --git a/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h b/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h
index e08fdde0fe2185102bf56510a8fd1e86d3f35e60..67ec1a1de37583db43d1de34abd2306c83ee8ebb 100644
--- a/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h
+++ b/third_party/WebKit/Source/platform/wtf/LinkedHashSet.h
@@ -714,7 +714,7 @@ inline const T& LinkedHashSet<T, U, V, W>::front() const {
template <typename T, typename U, typename V, typename W>
inline void LinkedHashSet<T, U, V, W>::removeFirst() {
DCHECK(!isEmpty());
- m_impl.remove(static_cast<Node*>(m_anchor.m_next));
+ m_impl.erase(static_cast<Node*>(m_anchor.m_next));
}
template <typename T, typename U, typename V, typename W>
@@ -732,7 +732,7 @@ inline const T& LinkedHashSet<T, U, V, W>::back() const {
template <typename T, typename U, typename V, typename W>
inline void LinkedHashSet<T, U, V, W>::pop_back() {
DCHECK(!isEmpty());
- m_impl.remove(static_cast<Node*>(m_anchor.m_prev));
+ m_impl.erase(static_cast<Node*>(m_anchor.m_prev));
}
template <typename T, typename U, typename V, typename W>
@@ -868,7 +868,7 @@ template <typename T, typename U, typename V, typename W>
inline void LinkedHashSet<T, U, V, W>::erase(iterator it) {
if (it == end())
return;
- m_impl.remove(it.getNode());
+ m_impl.erase(it.getNode());
}
template <typename T, typename U, typename V, typename W>
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/HashTable.h ('k') | third_party/WebKit/Source/platform/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698