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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/core/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 75586e7bb0eb915ab943669f05663a294154522c..a1bc5bfd6e52eb49d19f2d1cfc381327cf03dc69 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -465,8 +465,8 @@ bool PointerEventFactory::remove(const int mappedId) {
IncomingId p = m_pointerIdMapping.get(mappedId).incomingId;
int typeInt = p.pointerTypeInt();
- m_pointerIdMapping.remove(mappedId);
- m_pointerIncomingIdMapping.remove(p);
+ m_pointerIdMapping.erase(mappedId);
+ m_pointerIncomingIdMapping.erase(p);
if (m_primaryId[typeInt] == mappedId)
m_primaryId[typeInt] = PointerEventFactory::s_invalidId;
m_idCount[typeInt]--;

Powered by Google App Engine
This is Rietveld 408576698