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

Unified Diff: third_party/WebKit/Source/wtf/text/TextEncodingRegistry.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
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp b/third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp
index acf45240eb1b2399bb244fcf853f315572442066..85e33534a72ab5d8c9c8cf1efc0a371f9e28b828 100644
--- a/third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp
@@ -168,7 +168,7 @@ static void addToTextEncodingNameMap(const char* alias, const char* name) {
if (!atomicName)
atomicName = name;
checkExistingName(alias, atomicName);
- textEncodingNameMap->add(alias, atomicName);
+ textEncodingNameMap->insert(alias, atomicName);
}
static void addToTextCodecMap(const char* name,
@@ -176,7 +176,7 @@ static void addToTextCodecMap(const char* name,
const void* additionalData) {
const char* atomicName = textEncodingNameMap->get(name);
DCHECK(atomicName);
- textCodecMap->add(atomicName, TextCodecFactory(function, additionalData));
+ textCodecMap->insert(atomicName, TextCodecFactory(function, additionalData));
}
static void pruneBlacklistedCodecs() {
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698