Commit 7739b396 authored by Max Kellermann's avatar Max Kellermann

mixer/Listener: add `noexcept`

parent 11ec7117
...@@ -151,7 +151,7 @@ Partition::OnBorderPause() noexcept ...@@ -151,7 +151,7 @@ Partition::OnBorderPause() noexcept
} }
void void
Partition::OnMixerVolumeChanged(gcc_unused Mixer &mixer, gcc_unused int volume) Partition::OnMixerVolumeChanged(Mixer &, int) noexcept
{ {
InvalidateHardwareVolume(); InvalidateHardwareVolume();
......
...@@ -257,7 +257,7 @@ private: ...@@ -257,7 +257,7 @@ private:
void OnBorderPause() noexcept override; void OnBorderPause() noexcept override;
/* virtual methods from class MixerListener */ /* virtual methods from class MixerListener */
void OnMixerVolumeChanged(Mixer &mixer, int volume) override; void OnMixerVolumeChanged(Mixer &mixer, int volume) noexcept override;
/* callback for #global_events */ /* callback for #global_events */
void OnGlobalEvent(unsigned mask); void OnGlobalEvent(unsigned mask);
......
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -28,7 +28,8 @@ class Mixer; ...@@ -28,7 +28,8 @@ class Mixer;
*/ */
class MixerListener { class MixerListener {
public: public:
virtual void OnMixerVolumeChanged(Mixer &mixer, int volume) = 0; virtual void OnMixerVolumeChanged(Mixer &mixer,
int volume) noexcept = 0;
}; };
#endif #endif
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
class NullMixerListener : public MixerListener { class NullMixerListener : public MixerListener {
public: public:
void OnMixerVolumeChanged(Mixer &, int) override {} void OnMixerVolumeChanged(Mixer &, int) noexcept override {}
}; };
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment