Bug 1797131: Avoid making copies when iterating kRelationTypeAtoms r=nlapre

Differential Revision: https://phabricator.services.mozilla.com/D160118
This commit is contained in:
Morgan Rae Reschenberg 2022-10-31 19:45:30 +00:00
parent d2fca51e70
commit a655200f47

View File

@ -798,7 +798,7 @@ Relation RemoteAccessibleBase<Derived>::RelationByType(
return rel;
}
for (auto data : kRelationTypeAtoms) {
for (const auto& data : kRelationTypeAtoms) {
if (data.mType != aType ||
(data.mValidTag && TagName() != data.mValidTag)) {
continue;