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

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

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase 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
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSet.h
diff --git a/third_party/WebKit/Source/wtf/ListHashSet.h b/third_party/WebKit/Source/wtf/ListHashSet.h
index ecefd881222779a9b804506ea42101a007d2ad47..56f3c51ffba48bd91dc29427e63f3fb1ab6a4ac1 100644
--- a/third_party/WebKit/Source/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/wtf/ListHashSet.h
@@ -212,8 +212,8 @@ class ListHashSet
template <typename IncomingValueType>
AddResult insertBefore(iterator, IncomingValueType&&);
- void remove(ValuePeekInType value) { return remove(find(value)); }
- void remove(iterator);
+ void erase(ValuePeekInType value) { return erase(find(value)); }
+ void erase(iterator);
void clear();
template <typename Collection>
void removeAll(const Collection& other) {
@@ -993,7 +993,7 @@ ListHashSet<T, inlineCapacity, U, V>::insertBefore(
}
template <typename T, size_t inlineCapacity, typename U, typename V>
-inline void ListHashSet<T, inlineCapacity, U, V>::remove(iterator it) {
+inline void ListHashSet<T, inlineCapacity, U, V>::erase(iterator it) {
if (it == end())
return;
m_impl.remove(it.getNode());
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | third_party/WebKit/Source/wtf/ListHashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698