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

Unified Diff: third_party/WebKit/Source/core/inspector/DOMPatchSupport.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/DOMPatchSupport.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
index 996f1833b65d4112b6d66ed5eafa3ea50fc94e1b..8ee4137847421cb77140f46694c34e46c876ae3f 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -215,7 +215,7 @@ bool DOMPatchSupport::innerPatchNode(Digest* oldDigest,
bool result = innerPatchChildren(oldElement, oldDigest->m_children,
newDigest->m_children, exceptionState);
- m_unusedNodesMap.remove(newDigest->m_sha1);
+ m_unusedNodesMap.erase(newDigest->m_sha1);
return result;
}
@@ -541,7 +541,7 @@ void DOMPatchSupport::markNodeAsUsed(Digest* digest) {
queue.append(digest);
while (!queue.isEmpty()) {
Digest* first = queue.takeFirst();
- m_unusedNodesMap.remove(first->m_sha1);
+ m_unusedNodesMap.erase(first->m_sha1);
for (size_t i = 0; i < first->m_children.size(); ++i)
queue.append(first->m_children[i].get());
}

Powered by Google App Engine
This is Rietveld 408576698