diff --git a/src/output/Control.cxx b/src/output/Control.cxx index b41acbb7c..d6b100ff1 100644 --- a/src/output/Control.cxx +++ b/src/output/Control.cxx @@ -116,7 +116,7 @@ AudioOutputControl::GetMixer() const noexcept return output ? output->mixer : nullptr; } -const std::map +std::map AudioOutputControl::GetAttributes() const noexcept { return output diff --git a/src/output/Control.hxx b/src/output/Control.hxx index ef9cf5f2b..5a254a7ae 100644 --- a/src/output/Control.hxx +++ b/src/output/Control.hxx @@ -357,7 +357,7 @@ public: void BeginDestroy() noexcept; - const std::map GetAttributes() const noexcept; + std::map GetAttributes() const noexcept; void SetAttribute(std::string &&name, std::string &&value); /** diff --git a/src/output/Filtered.cxx b/src/output/Filtered.cxx index 462ce2fdb..45c957141 100644 --- a/src/output/Filtered.cxx +++ b/src/output/Filtered.cxx @@ -39,7 +39,7 @@ FilteredAudioOutput::SupportsPause() const noexcept return output->SupportsPause(); } -const std::map +std::map FilteredAudioOutput::GetAttributes() const noexcept { return output->GetAttributes(); diff --git a/src/output/Filtered.hxx b/src/output/Filtered.hxx index ca527e26e..97d37765a 100644 --- a/src/output/Filtered.hxx +++ b/src/output/Filtered.hxx @@ -170,7 +170,7 @@ public: gcc_pure bool SupportsPause() const noexcept; - const std::map GetAttributes() const noexcept; + std::map GetAttributes() const noexcept; void SetAttribute(std::string &&name, std::string &&value); /** diff --git a/src/output/Interface.hxx b/src/output/Interface.hxx index 99d63360e..63ee4668f 100644 --- a/src/output/Interface.hxx +++ b/src/output/Interface.hxx @@ -64,7 +64,7 @@ public: * * This method must be thread-safe. */ - virtual const std::map GetAttributes() const noexcept { + virtual std::map GetAttributes() const noexcept { return {}; } diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 504090a88..5a9bc76ff 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -228,7 +228,7 @@ public: } private: - const std::map GetAttributes() const noexcept override; + std::map GetAttributes() const noexcept override; void SetAttribute(std::string &&name, std::string &&value) override; void Enable() override; @@ -427,7 +427,7 @@ AlsaOutput::AlsaOutput(EventLoop &_loop, const ConfigBlock &block) allowed_formats = Alsa::AllowedFormat::ParseList(allowed_formats_string); } -const std::map +std::map AlsaOutput::GetAttributes() const noexcept { const std::lock_guard lock(attributes_mutex);