diff --git a/dom/media/GraphDriver.h b/dom/media/GraphDriver.h index ad47753f5572..0e54af9dbdb8 100644 --- a/dom/media/GraphDriver.h +++ b/dom/media/GraphDriver.h @@ -99,7 +99,7 @@ struct GraphInterface { explicit Stop(RefPtr aStoppedRunnable) : mStoppedRunnable(std::move(aStoppedRunnable)) {} Stop(const Stop&) = delete; - Stop(Stop&& aOther) + Stop(Stop&& aOther) noexcept : mStoppedRunnable(std::move(aOther.mStoppedRunnable)) {} ~Stop() { MOZ_ASSERT(!mStoppedRunnable); } RefPtr mStoppedRunnable; @@ -114,7 +114,7 @@ struct GraphInterface { : mDriver(std::move(aDriver)), mSwitchedRunnable(std::move(aSwitchedRunnable)) {} SwitchDriver(const SwitchDriver&) = delete; - SwitchDriver(SwitchDriver&& aOther) + SwitchDriver(SwitchDriver&& aOther) noexcept : mDriver(std::move(aOther.mDriver)), mSwitchedRunnable(std::move(aOther.mSwitchedRunnable)) {} ~SwitchDriver() { MOZ_ASSERT(!mSwitchedRunnable); } @@ -500,7 +500,7 @@ class OfflineClockDriver : public ThreadedDriver { OfflineClockDriver* AsOfflineClockDriver() override { return this; } protected: - TimeDuration WaitInterval() override { return 0; } + TimeDuration WaitInterval() override { return TimeDuration(); } MediaTime GetIntervalForIteration() override; private: diff --git a/dom/media/GraphRunner.h b/dom/media/GraphRunner.h index e5d0cb9379af..ade8bbd948c6 100644 --- a/dom/media/GraphRunner.h +++ b/dom/media/GraphRunner.h @@ -70,12 +70,7 @@ class GraphRunner final : public Runnable { IterationState(GraphTime aStateEnd, GraphTime aIterationEnd, AudioMixer* aMixer) : mStateEnd(aStateEnd), mIterationEnd(aIterationEnd), mMixer(aMixer) {} - IterationState& operator=(const IterationState& aOther) { - mStateEnd = aOther.mStateEnd; - mIterationEnd = aOther.mIterationEnd; - mMixer = aOther.mMixer; - return *this; - } + IterationState& operator=(const IterationState& aOther) = default; GraphTime StateEnd() const { return mStateEnd; } GraphTime IterationEnd() const { return mIterationEnd; } AudioMixer* Mixer() const { return mMixer; }