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

Unified Diff: third_party/WebKit/Source/core/html/forms/FormController.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/core/html/forms/FormController.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/FormController.cpp b/third_party/WebKit/Source/core/html/forms/FormController.cpp
index 83bacc49bf302d5349dbbdf3e0ff2d259d86b279..701e624d125f11ff75219a73d4f7e47a0ca45073 100644
--- a/third_party/WebKit/Source/core/html/forms/FormController.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FormController.cpp
@@ -280,7 +280,7 @@ FormControlState SavedFormState::takeControlState(const AtomicString& name,
FormControlState state = it->value.takeFirst();
m_controlStateCount--;
if (!it->value.size())
- m_stateForNewFormElements.remove(it);
+ m_stateForNewFormElements.erase(it);
return state;
}
@@ -489,7 +489,7 @@ FormControlState FormController::takeStateForFormElement(
FormControlState state =
it->value->takeControlState(control.name(), control.type());
if (it->value->isEmpty())
- m_savedFormStateMap.remove(it);
+ m_savedFormStateMap.erase(it);
return state;
}

Powered by Google App Engine
This is Rietveld 408576698