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 /src/filter | |
parent | 13b04dc908aec4aa57a943d03e8689184c592e01 (diff) |
mixer/software, filter/volume: add "noexcept"
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/plugins/VolumeFilterPlugin.cxx | 8 | ||||
-rw-r--r-- | src/filter/plugins/VolumeFilterPlugin.hxx | 4 |
2 files changed, 6 insertions, 6 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 |