diff options
author | Max Kellermann <max@musicpd.org> | 2017-06-08 21:40:32 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-06-08 21:45:23 +0200 |
commit | 22a82f1eaa8b03f6a2edb4b81610a504b2a7ec80 (patch) | |
tree | 8db630d4cfc7e704b39b3dd4e37f0a7cb9c47bb2 | |
parent | 13b04dc908aec4aa57a943d03e8689184c592e01 (diff) |
mixer/software, filter/volume: add "noexcept"
-rw-r--r-- | src/filter/plugins/VolumeFilterPlugin.cxx | 8 | ||||
-rw-r--r-- | src/filter/plugins/VolumeFilterPlugin.hxx | 4 | ||||
-rw-r--r-- | src/mixer/plugins/SoftwareMixerPlugin.cxx | 6 | ||||
-rw-r--r-- | src/mixer/plugins/SoftwareMixerPlugin.hxx | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/filter/plugins/VolumeFilterPlugin.cxx b/src/filter/plugins/VolumeFilterPlugin.cxx index 43fdf8d88..520fd53bf 100644 --- a/src/filter/plugins/VolumeFilterPlugin.cxx +++ b/src/filter/plugins/VolumeFilterPlugin.cxx @@ -37,11 +37,11 @@ public: pv.Open(out_audio_format.format); } - unsigned GetVolume() const { + unsigned GetVolume() const noexcept { return pv.GetVolume(); } - void SetVolume(unsigned _volume) { + void SetVolume(unsigned _volume) noexcept { pv.SetVolume(_volume); } @@ -81,7 +81,7 @@ const FilterPlugin volume_filter_plugin = { }; unsigned -volume_filter_get(const Filter *_filter) +volume_filter_get(const Filter *_filter) noexcept { const VolumeFilter *filter = (const VolumeFilter *)_filter; @@ -90,7 +90,7 @@ volume_filter_get(const Filter *_filter) } void -volume_filter_set(Filter *_filter, unsigned volume) +volume_filter_set(Filter *_filter, unsigned volume) noexcept { VolumeFilter *filter = (VolumeFilter *)_filter; diff --git a/src/filter/plugins/VolumeFilterPlugin.hxx b/src/filter/plugins/VolumeFilterPlugin.hxx index 32f64f76a..f2003a52a 100644 --- a/src/filter/plugins/VolumeFilterPlugin.hxx +++ b/src/filter/plugins/VolumeFilterPlugin.hxx @@ -23,9 +23,9 @@ class Filter; unsigned -volume_filter_get(const Filter *filter); +volume_filter_get(const Filter *filter) noexcept; void -volume_filter_set(Filter *filter, unsigned volume); +volume_filter_set(Filter *filter, unsigned volume) noexcept; #endif diff --git a/src/mixer/plugins/SoftwareMixerPlugin.cxx b/src/mixer/plugins/SoftwareMixerPlugin.cxx index 15dca0e69..7b29af708 100644 --- a/src/mixer/plugins/SoftwareMixerPlugin.cxx +++ b/src/mixer/plugins/SoftwareMixerPlugin.cxx @@ -44,7 +44,7 @@ public: { } - void SetFilter(Filter *_filter); + void SetFilter(Filter *_filter) noexcept; /* virtual methods from class Mixer */ void Open() override { @@ -101,7 +101,7 @@ const MixerPlugin software_mixer_plugin = { }; inline void -SoftwareMixer::SetFilter(Filter *_filter) +SoftwareMixer::SetFilter(Filter *_filter) noexcept { filter = _filter; @@ -111,7 +111,7 @@ SoftwareMixer::SetFilter(Filter *_filter) } void -software_mixer_set_filter(Mixer &mixer, Filter *filter) +software_mixer_set_filter(Mixer &mixer, Filter *filter) noexcept { SoftwareMixer &sm = (SoftwareMixer &)mixer; sm.SetFilter(filter); diff --git a/src/mixer/plugins/SoftwareMixerPlugin.hxx b/src/mixer/plugins/SoftwareMixerPlugin.hxx index f32ae04ba..7a3c28b1a 100644 --- a/src/mixer/plugins/SoftwareMixerPlugin.hxx +++ b/src/mixer/plugins/SoftwareMixerPlugin.hxx @@ -30,6 +30,6 @@ class Filter; * volume_filter_set(). */ void -software_mixer_set_filter(Mixer &mixer, Filter *filter); +software_mixer_set_filter(Mixer &mixer, Filter *filter) noexcept; #endif |