Bug 1184468 - Use nsTHashtable::Keys where possible. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D108588
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user