@@ -54,15 +54,15 @@ NS_IMPL_ADDREF_INHERITED(MIDIAccess, DOMEventTargetHelper)
5454NS_IMPL_RELEASE_INHERITED (MIDIAccess, DOMEventTargetHelper)
5555
5656MIDIAccess::MIDIAccess (nsPIDOMWindowInner* aWindow, bool aSysexEnabled,
57- Promise* aPromise )
57+ Promise* aAccessPromise )
5858 : DOMEventTargetHelper(aWindow),
5959 mInputMap (new MIDIInputMap(aWindow)),
6060 mOutputMap(new MIDIOutputMap(aWindow)),
6161 mSysexEnabled(aSysexEnabled),
62- mAccessPromise(aPromise ),
62+ mAccessPromise(aAccessPromise ),
6363 mHasShutdown(false ) {
6464 MOZ_ASSERT (aWindow);
65- MOZ_ASSERT (aPromise );
65+ MOZ_ASSERT (aAccessPromise );
6666}
6767
6868MIDIAccess::~MIDIAccess () { Shutdown (); }
@@ -190,7 +190,7 @@ void MIDIAccess::MaybeCreateMIDIPort(const MIDIPortInfo& aInfo,
190190// received, that will be handled by the MIDIPort object itself, and it will
191191// request removal from MIDIAccess's maps.
192192void MIDIAccess::Notify (const MIDIPortList& aEvent) {
193- for (auto & port : aEvent.ports ()) {
193+ for (const auto & port : aEvent.ports ()) {
194194 // Something went very wrong. Warn and return.
195195 ErrorResult rv;
196196 MaybeCreateMIDIPort (port, rv);
0 commit comments