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:
Simon Giesecke
2021-02-26 09:11:45 +00:00
parent d12a06d10f
commit 7c075f27d9
83 changed files with 223 additions and 209 deletions

View File

@@ -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;
}
}