Commit 8f0a1a5d authored by Max Kellermann's avatar Max Kellermann

output/Interface: add `noexcept`

parent c0775d32
...@@ -41,21 +41,21 @@ protected: ...@@ -41,21 +41,21 @@ protected:
static constexpr unsigned FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT = 0x4; static constexpr unsigned FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT = 0x4;
public: public:
explicit AudioOutput(unsigned _flags):flags(_flags) {} explicit AudioOutput(unsigned _flags) noexcept:flags(_flags) {}
virtual ~AudioOutput() = default; virtual ~AudioOutput() noexcept = default;
AudioOutput(const AudioOutput &) = delete; AudioOutput(const AudioOutput &) = delete;
AudioOutput &operator=(const AudioOutput &) = delete; AudioOutput &operator=(const AudioOutput &) = delete;
bool SupportsEnableDisable() const { bool SupportsEnableDisable() const noexcept {
return flags & FLAG_ENABLE_DISABLE; return flags & FLAG_ENABLE_DISABLE;
} }
bool SupportsPause() const { bool SupportsPause() const noexcept {
return flags & FLAG_PAUSE; return flags & FLAG_PAUSE;
} }
bool GetNeedFullyDefinedAudioFormat() const { bool GetNeedFullyDefinedAudioFormat() const noexcept {
return flags & FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT; return flags & FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT;
} }
......
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