Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
The functions should be called "Lookup" rather than "Get" because they return a DataType& (rather than UserDataType). Differential Revision: https://phabricator.services.mozilla.com/D105472
This commit is contained in:
@@ -2147,7 +2147,7 @@ HTMLFormElement::WalkRadioGroup(const nsAString& aName,
|
||||
void HTMLFormElement::AddToRadioGroup(const nsAString& aName,
|
||||
HTMLInputElement* aRadio) {
|
||||
if (aRadio->IsRequired()) {
|
||||
uint32_t& value = mRequiredRadioButtonCounts.GetOrInsert(aName, 0);
|
||||
uint32_t& value = mRequiredRadioButtonCounts.LookupOrInsert(aName, 0);
|
||||
++value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user