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

Unified Diff: third_party/WebKit/Source/platform/fonts/GenericFontFamilySettings.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/platform/fonts/GenericFontFamilySettings.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/GenericFontFamilySettings.cpp b/third_party/WebKit/Source/platform/fonts/GenericFontFamilySettings.cpp
index 1f9fc5f54f0977c1a5e98e9ade6ec12edaaa667e..929960e3f3c29822df4937364f66521cd0ff26d5 100644
--- a/third_party/WebKit/Source/platform/fonts/GenericFontFamilySettings.cpp
+++ b/third_party/WebKit/Source/platform/fonts/GenericFontFamilySettings.cpp
@@ -66,7 +66,7 @@ void GenericFontFamilySettings::setGenericFontFamilyMap(
if (family.isEmpty()) {
if (it == fontMap.end())
return;
- fontMap.remove(it);
+ fontMap.erase(it);
} else if (it != fontMap.end() && it->value == family) {
return;
} else {

Powered by Google App Engine
This is Rietveld 408576698