summaryrefslogtreecommitdiff
path: root/src/pcm/SampleFormat.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-01 19:07:33 +0100
committerMax Kellermann <max@musicpd.org>2018-01-01 19:07:33 +0100
commit3bb9c704de1d0dffe0a3d3f3dac42e59299b4cf6 (patch)
tree90bf541b06ececf9372713892a9f28380efdb8d3 /src/pcm/SampleFormat.hxx
parent10537c5095258b88cdc13beac06577b335bbf6ee (diff)
pcm/*: add "noexcept"
Diffstat (limited to 'src/pcm/SampleFormat.hxx')
-rw-r--r--src/pcm/SampleFormat.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/SampleFormat.hxx b/src/pcm/SampleFormat.hxx
index 408357825..405add4e5 100644
--- a/src/pcm/SampleFormat.hxx
+++ b/src/pcm/SampleFormat.hxx
@@ -68,7 +68,7 @@ enum class SampleFormat : uint8_t {
constexpr
#endif
static inline bool
-audio_valid_sample_format(SampleFormat format)
+audio_valid_sample_format(SampleFormat format) noexcept
{
switch (format) {
case SampleFormat::S8:
@@ -90,7 +90,7 @@ audio_valid_sample_format(SampleFormat format)
constexpr
#endif
static inline unsigned
-sample_format_size(SampleFormat format)
+sample_format_size(SampleFormat format) noexcept
{
switch (format) {
case SampleFormat::S8: