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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp

Issue 2703833002: Migrate WTF::HashSet::remove() to ::erase() [part 2] (Closed)
Patch Set: Created 3 years, 10 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/core/workers/WorkerEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
index a83a6ab9899862308656fa0ac78d2b480c61a86e..2bbd43b88094242c89b4fb7af9e302e4be0bf39b 100644
--- a/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp
@@ -85,7 +85,7 @@ bool WorkerEventQueue::removeEvent(Event* event) {
auto found = m_pendingEvents.find(event);
if (found == m_pendingEvents.end())
return false;
- m_pendingEvents.remove(found);
+ m_pendingEvents.erase(found);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698