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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs 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/inspector/DOMPatchSupport.cpp
diff --git a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
index 8ee4137847421cb77140f46694c34e46c876ae3f..5fa7972cb5c57b7c123cf53c6ff2959ff75aa697 100644
--- a/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
+++ b/third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp
@@ -261,12 +261,12 @@ DOMPatchSupport::diff(const HeapVector<Member<Digest>>& oldList,
DiffTable oldTable;
for (size_t i = 0; i < newList.size(); ++i) {
- newTable.add(newList[i]->m_sha1, Vector<size_t>())
+ newTable.insert(newList[i]->m_sha1, Vector<size_t>())
.storedValue->value.push_back(i);
}
for (size_t i = 0; i < oldList.size(); ++i) {
- oldTable.add(oldList[i]->m_sha1, Vector<size_t>())
+ oldTable.insert(oldList[i]->m_sha1, Vector<size_t>())
.storedValue->value.push_back(i);
}
@@ -489,7 +489,7 @@ DOMPatchSupport::Digest* DOMPatchSupport::createDigest(
base64Encode(reinterpret_cast<const char*>(digestResult.data()), 10);
if (unusedNodesMap)
- unusedNodesMap->add(digest->m_sha1, digest);
+ unusedNodesMap->insert(digest->m_sha1, digest);
return digest;
}

Powered by Google App Engine
This is Rietveld 408576698