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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 7dd5529466edbef3408790ab41b17e360efa0f3e..6de39b9922ce99032c05b76755204ced200a478f 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -215,7 +215,7 @@ ThreadHeap::ThreadHeap()
s_mainThreadHeap = this;
MutexLocker locker(ThreadHeap::allHeapsMutex());
- allHeaps().add(this);
+ allHeaps().insert(this);
}
ThreadHeap::~ThreadHeap() {
@@ -235,7 +235,7 @@ HashSet<ThreadHeap*>& ThreadHeap::allHeaps() {
void ThreadHeap::attach(ThreadState* thread) {
MutexLocker locker(m_threadAttachMutex);
- m_threads.add(thread);
+ m_threads.insert(thread);
}
void ThreadHeap::detach(ThreadState* thread) {

Powered by Google App Engine
This is Rietveld 408576698