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

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

Issue 2799573003: Migrate WTF::HashCountedSet::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/loader/fetch/Resource.cpp ('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/HashCountedSet.h
diff --git a/third_party/WebKit/Source/platform/wtf/HashCountedSet.h b/third_party/WebKit/Source/platform/wtf/HashCountedSet.h
index 38cf4b6f50768706a25811459d011c0f973d3014..0f942f32f6ede00c539194f8eff1039b10ce5f7c 100644
--- a/third_party/WebKit/Source/platform/wtf/HashCountedSet.h
+++ b/third_party/WebKit/Source/platform/wtf/HashCountedSet.h
@@ -93,8 +93,8 @@ class HashCountedSet {
// Reduces the count of the value, and removes it if count goes down to
// zero, returns true if the value is removed.
- bool remove(const ValueType& value) { return remove(find(value)); }
- bool remove(iterator);
+ bool erase(const ValueType& value) { return erase(find(value)); }
+ bool erase(iterator);
// Removes the value, regardless of its count.
void removeAll(const ValueType& value) { removeAll(find(value)); }
@@ -130,7 +130,7 @@ HashCountedSet<T, U, V, W>::insert(const ValueType& value) {
}
template <typename T, typename U, typename V, typename W>
-inline bool HashCountedSet<T, U, V, W>::remove(iterator it) {
+inline bool HashCountedSet<T, U, V, W>::erase(iterator it) {
if (it == end())
return false;
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/Resource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698