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

Unified Diff: third_party/WebKit/Source/platform/wtf/ListHashSet.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
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/LinkedHashSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/ListHashSet.h
diff --git a/third_party/WebKit/Source/platform/wtf/ListHashSet.h b/third_party/WebKit/Source/platform/wtf/ListHashSet.h
index 3e82725d4102be86df6097b2e004dc748948fae7..2cf4c18c324ba5794898f58fc590463612b2e700 100644
--- a/third_party/WebKit/Source/platform/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/platform/wtf/ListHashSet.h
@@ -817,7 +817,7 @@ inline T& ListHashSet<T, inlineCapacity, U, V>::front() {
template <typename T, size_t inlineCapacity, typename U, typename V>
inline void ListHashSet<T, inlineCapacity, U, V>::removeFirst() {
DCHECK(!isEmpty());
- m_impl.remove(m_head);
+ m_impl.erase(m_head);
unlinkAndDelete(m_head);
}
@@ -842,7 +842,7 @@ inline const T& ListHashSet<T, inlineCapacity, U, V>::back() const {
template <typename T, size_t inlineCapacity, typename U, typename V>
inline void ListHashSet<T, inlineCapacity, U, V>::pop_back() {
DCHECK(!isEmpty());
- m_impl.remove(m_tail);
+ m_impl.erase(m_tail);
unlinkAndDelete(m_tail);
}
@@ -996,7 +996,7 @@ template <typename T, size_t inlineCapacity, typename U, typename V>
inline void ListHashSet<T, inlineCapacity, U, V>::erase(iterator it) {
if (it == end())
return;
- m_impl.remove(it.getNode());
+ m_impl.erase(it.getNode());
unlinkAndDelete(it.getNode());
}
@@ -1013,7 +1013,7 @@ auto ListHashSet<T, inlineCapacity, U, V>::take(iterator it) -> ValueType {
if (it == end())
return ValueTraits::emptyValue();
- m_impl.remove(it.getNode());
+ m_impl.erase(it.getNode());
ValueType result = std::move(it.getNode()->m_value);
unlinkAndDelete(it.getNode());
@@ -1029,7 +1029,7 @@ auto ListHashSet<T, inlineCapacity, U, V>::take(ValuePeekInType value)
template <typename T, size_t inlineCapacity, typename U, typename V>
auto ListHashSet<T, inlineCapacity, U, V>::takeFirst() -> ValueType {
DCHECK(!isEmpty());
- m_impl.remove(m_head);
+ m_impl.erase(m_head);
ValueType result = std::move(m_head->m_value);
unlinkAndDelete(m_head);
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/LinkedHashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698