Bug 1184468 - Use nsTHashtable::Keys where possible. r=xpcom-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D108588
This commit is contained in:
Simon Giesecke
2021-03-24 17:56:50 +00:00
parent 9e995a79e8
commit 87c754b1bd
33 changed files with 73 additions and 136 deletions

View File

@@ -3559,10 +3559,8 @@ void HTMLMediaElement::UpdateOutputTrackSources() {
}
// ...and all MediaElementTrackSources.
AutoTArray<nsString, 4> trackSourcesToRemove;
for (const auto& entry : mOutputTrackSources) {
trackSourcesToRemove.AppendElement(entry.GetKey());
}
auto trackSourcesToRemove =
ToTArray<AutoTArray<nsString, 4>>(mOutputTrackSources.Keys());
// Then work out the differences.
mediaTracksToAdd.RemoveLastElements(