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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference 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/HashCountedSet.h
diff --git a/third_party/WebKit/Source/wtf/HashCountedSet.h b/third_party/WebKit/Source/wtf/HashCountedSet.h
index 6d99b5fc71aca86cf385f7f8bcf21c2210367a29..6c3db07c7ebd46ec8768fcc758dca3dbcbb7b3c7 100644
--- a/third_party/WebKit/Source/wtf/HashCountedSet.h
+++ b/third_party/WebKit/Source/wtf/HashCountedSet.h
@@ -142,7 +142,7 @@ inline bool HashCountedSet<T, U, V, W>::remove(iterator it) {
return false;
}
- m_impl.remove(it);
+ m_impl.erase(it);
return true;
}
@@ -151,7 +151,7 @@ inline void HashCountedSet<T, U, V, W>::removeAll(iterator it) {
if (it == end())
return;
- m_impl.remove(it);
+ m_impl.erase(it);
}
template <typename Value,
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp ('k') | third_party/WebKit/Source/wtf/HashMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698