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

Unified Diff: third_party/WebKit/Source/wtf/LinkedHashSet.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
Index: third_party/WebKit/Source/wtf/LinkedHashSet.h
diff --git a/third_party/WebKit/Source/wtf/LinkedHashSet.h b/third_party/WebKit/Source/wtf/LinkedHashSet.h
index 40f80f52cde82ca2da81758e036450528e82af5d..cac985fb4d0f9474d06de70d6e0b116c9260c83d 100644
--- a/third_party/WebKit/Source/wtf/LinkedHashSet.h
+++ b/third_party/WebKit/Source/wtf/LinkedHashSet.h
@@ -288,8 +288,8 @@ class LinkedHashSet {
std::forward<IncomingValueType>(newValue), it.getNode());
}
- void remove(ValuePeekInType);
- void remove(iterator);
+ void erase(ValuePeekInType);
+ void erase(iterator);
void clear() { m_impl.clear(); }
template <typename Collection>
void removeAll(const Collection& other) {
@@ -865,15 +865,15 @@ LinkedHashSet<T, U, V, W>::insertBefore(ValuePeekInType beforeValue,
}
template <typename T, typename U, typename V, typename W>
-inline void LinkedHashSet<T, U, V, W>::remove(iterator it) {
+inline void LinkedHashSet<T, U, V, W>::erase(iterator it) {
if (it == end())
return;
m_impl.remove(it.getNode());
}
template <typename T, typename U, typename V, typename W>
-inline void LinkedHashSet<T, U, V, W>::remove(ValuePeekInType value) {
- remove(find(value));
+inline void LinkedHashSet<T, U, V, W>::erase(ValuePeekInType value) {
+ erase(find(value));
}
inline void swapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b) {
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp ('k') | third_party/WebKit/Source/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698