From 8f0a1a5d8230031433a380ef724f6f3e33d45c6e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 1 Oct 2020 20:43:08 +0200 Subject: [PATCH] output/Interface: add `noexcept` --- src/output/Interface.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/output/Interface.hxx b/src/output/Interface.hxx index 63ee4668f..a54e23a0b 100644 --- a/src/output/Interface.hxx +++ b/src/output/Interface.hxx @@ -41,21 +41,21 @@ protected: static constexpr unsigned FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT = 0x4; public: - explicit AudioOutput(unsigned _flags):flags(_flags) {} - virtual ~AudioOutput() = default; + explicit AudioOutput(unsigned _flags) noexcept:flags(_flags) {} + virtual ~AudioOutput() noexcept = default; AudioOutput(const AudioOutput &) = delete; AudioOutput &operator=(const AudioOutput &) = delete; - bool SupportsEnableDisable() const { + bool SupportsEnableDisable() const noexcept { return flags & FLAG_ENABLE_DISABLE; } - bool SupportsPause() const { + bool SupportsPause() const noexcept { return flags & FLAG_PAUSE; } - bool GetNeedFullyDefinedAudioFormat() const { + bool GetNeedFullyDefinedAudioFormat() const noexcept { return flags & FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT; }