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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 84a94fe37e04f57b7df727b6789e1743a5e1605f..0c6dbef0d0db5010ff49a96711f4de95dc5b3ea6 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -412,7 +412,7 @@ Response InspectorLayerTreeAgent::releaseSnapshot(const String& snapshotId) {
SnapshotById::iterator it = m_snapshotById.find(snapshotId);
if (it == m_snapshotById.end())
return Response::Error("Snapshot not found");
- m_snapshotById.remove(it);
+ m_snapshotById.erase(it);
return Response::OK();
}

Powered by Google App Engine
This is Rietveld 408576698