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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.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/inspector/InspectorAnimationAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
index c08cdce77ac7840d58a4ec869497bc3e65105772..cbd90d3af5c5c91bfa835308925c37fd9722dbce 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -347,9 +347,9 @@ Response InspectorAnimationAgent::releaseAnimations(
blink::Animation* clone = m_idToAnimationClone.get(animationId);
if (clone)
clone->cancel();
- m_idToAnimationClone.remove(animationId);
- m_idToAnimation.remove(animationId);
- m_idToAnimationType.remove(animationId);
+ m_idToAnimationClone.erase(animationId);
+ m_idToAnimation.erase(animationId);
+ m_idToAnimationType.erase(animationId);
m_clearedAnimations.insert(animationId);
}
return Response::OK();

Powered by Google App Engine
This is Rietveld 408576698