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

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

Issue 2804953004: Migrate WTF::HashTable::add() to ::insert() (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
Index: third_party/WebKit/Source/platform/wtf/HashSet.h
diff --git a/third_party/WebKit/Source/platform/wtf/HashSet.h b/third_party/WebKit/Source/platform/wtf/HashSet.h
index 927c3259a2f71be4b177f628bca76347c827d2f3..8b140eb004ad761d2c08c4d3d62c39d38237b545 100644
--- a/third_party/WebKit/Source/platform/wtf/HashSet.h
+++ b/third_party/WebKit/Source/platform/wtf/HashSet.h
@@ -254,7 +254,7 @@ template <typename T, typename U, typename V, typename W>
template <typename IncomingValueType>
inline typename HashSet<T, U, V, W>::AddResult HashSet<T, U, V, W>::insert(
IncomingValueType&& value) {
- return m_impl.add(std::forward<IncomingValueType>(value));
+ return m_impl.insert(std::forward<IncomingValueType>(value));
}
template <typename Value,
@@ -267,7 +267,7 @@ HashSet<Value, HashFunctions, Traits, Allocator>::addWithTranslator(T&& value) {
// Forward only the first argument, because the second argument isn't actually
// used in HashSetTranslatorAdapter.
return m_impl
- .template addPassingHashCode<HashSetTranslatorAdapter<HashTranslator>>(
+ .template insertPassingHashCode<HashSetTranslatorAdapter<HashTranslator>>(
std::forward<T>(value), value);
}
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/HashMap.h ('k') | third_party/WebKit/Source/platform/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698