Bug 1434710 - Replaced typename IndexSequenceFor<Ts...>::Type() with std::index_sequence_for<Ts...> in dom/media/MediaDecoderStateMachine.cpp. r=botond
MozReview-Commit-ID: Ar99FoPoL6d
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -300,17 +300,17 @@ protected:
master->OwnerThread()->DispatchDirectTask(
NS_NewRunnableFunction("MDSM::StateObject::DeleteOldState",
[toDelete = Move(master->mStateObj)](){}));
// Also reset mMaster to catch potentail UAF.
mMaster = nullptr;
master->mStateObj.reset(s);
return CallEnterMemberFunction(s, copiedArgs,
- typename IndexSequenceFor<Ts...>::Type());
+ std::index_sequence_for<Ts...>);
}
RefPtr<MediaDecoder::SeekPromise>
SetSeekingState(SeekJob&& aSeekJob, EventVisibility aVisibility);
// Take a raw pointer in order not to change the life cycle of MDSM.
// It is guaranteed to be valid by MDSM.
Master* mMaster;