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

Unified Diff: Source/core/html/forms/CheckedRadioButtons.cpp

Issue 167123002: Simpler return value from HashTable::add()/HashMap::add() and others (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/core/html/PublicURLManager.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/CheckedRadioButtons.cpp
diff --git a/Source/core/html/forms/CheckedRadioButtons.cpp b/Source/core/html/forms/CheckedRadioButtons.cpp
index b818afa0cdd5e26fcf39059b844c1182a49c6fcd..63005af322f52502cf79e4623ab5ffdcd0ae89bc 100644
--- a/Source/core/html/forms/CheckedRadioButtons.cpp
+++ b/Source/core/html/forms/CheckedRadioButtons.cpp
@@ -193,7 +193,7 @@ void CheckedRadioButtons::addButton(HTMLInputElement* element)
if (!m_nameToGroupMap)
m_nameToGroupMap = adoptPtr(new NameToGroupMap);
- OwnPtr<RadioButtonGroup>& group = m_nameToGroupMap->add(element->name(), PassOwnPtr<RadioButtonGroup>()).iterator->value;
+ OwnPtr<RadioButtonGroup>& group = m_nameToGroupMap->add(element->name(), PassOwnPtr<RadioButtonGroup>()).storedValue->value;
if (!group)
group = RadioButtonGroup::create();
group->add(element);
« no previous file with comments | « Source/core/html/PublicURLManager.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698