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

Unified Diff: third_party/WebKit/Source/web/WebEntities.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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/web/WebEntities.cpp
diff --git a/third_party/WebKit/Source/web/WebEntities.cpp b/third_party/WebKit/Source/web/WebEntities.cpp
index 827489d2cdb5c7b912c63d0001fb939d6040bf12..04054df13813dfc79061b7bded8de86b8c6d89af 100644
--- a/third_party/WebKit/Source/web/WebEntities.cpp
+++ b/third_party/WebKit/Source/web/WebEntities.cpp
@@ -51,7 +51,7 @@ WebEntities::WebEntities(bool xmlEntities) {
String WebEntities::entityNameByCode(int code) const {
// FIXME: We should use find so we only do one hash lookup.
if (m_entitiesMap.contains(code))
- return m_entitiesMap.get(code);
+ return m_entitiesMap.at(code);
return "";
}
@@ -65,7 +65,7 @@ String WebEntities::convertEntitiesInString(const String& value) const {
if (m_entitiesMap.contains(c)) {
didConvertEntity = true;
result.append('&');
- result.append(m_entitiesMap.get(c));
+ result.append(m_entitiesMap.at(c));
result.append(';');
} else {
result.append(c);
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698