Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called Insert and/or Update. Also, it removes the ambiguity whether Put expects that an entry already exists or not, in particular because it differed from nsTHashtable::PutEntry in that regard. Differential Revision: https://phabricator.services.mozilla.com/D105473
This commit is contained in:
@@ -3726,7 +3726,7 @@ void HTMLMediaElement::UpdateOutputTrackSources() {
|
||||
|
||||
track->QueueSetAutoend(false);
|
||||
MOZ_DIAGNOSTIC_ASSERT(!mOutputTrackSources.GetWeak(id));
|
||||
mOutputTrackSources.Put(id, RefPtr{source});
|
||||
mOutputTrackSources.InsertOrUpdate(id, RefPtr{source});
|
||||
|
||||
// Add the new track source to any existing output streams
|
||||
for (OutputMediaStream& ms : mOutputStreams) {
|
||||
|
||||
Reference in New Issue
Block a user