remove redundant const qualification

Found with readability-const-return-type

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-02 14:13:36 -08:00
parent 140d8547c7
commit 1923cf3844
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
6 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ AudioOutputControl::GetMixer() const noexcept
return output ? output->mixer : nullptr; return output ? output->mixer : nullptr;
} }
const std::map<std::string, std::string> std::map<std::string, std::string>
AudioOutputControl::GetAttributes() const noexcept AudioOutputControl::GetAttributes() const noexcept
{ {
return output return output

View File

@ -357,7 +357,7 @@ public:
void BeginDestroy() noexcept; void BeginDestroy() noexcept;
const std::map<std::string, std::string> GetAttributes() const noexcept; std::map<std::string, std::string> GetAttributes() const noexcept;
void SetAttribute(std::string &&name, std::string &&value); void SetAttribute(std::string &&name, std::string &&value);
/** /**

View File

@ -39,7 +39,7 @@ FilteredAudioOutput::SupportsPause() const noexcept
return output->SupportsPause(); return output->SupportsPause();
} }
const std::map<std::string, std::string> std::map<std::string, std::string>
FilteredAudioOutput::GetAttributes() const noexcept FilteredAudioOutput::GetAttributes() const noexcept
{ {
return output->GetAttributes(); return output->GetAttributes();

View File

@ -170,7 +170,7 @@ public:
gcc_pure gcc_pure
bool SupportsPause() const noexcept; bool SupportsPause() const noexcept;
const std::map<std::string, std::string> GetAttributes() const noexcept; std::map<std::string, std::string> GetAttributes() const noexcept;
void SetAttribute(std::string &&name, std::string &&value); void SetAttribute(std::string &&name, std::string &&value);
/** /**

View File

@ -64,7 +64,7 @@ public:
* *
* This method must be thread-safe. * This method must be thread-safe.
*/ */
virtual const std::map<std::string, std::string> GetAttributes() const noexcept { virtual std::map<std::string, std::string> GetAttributes() const noexcept {
return {}; return {};
} }

View File

@ -228,7 +228,7 @@ public:
} }
private: private:
const std::map<std::string, std::string> GetAttributes() const noexcept override; std::map<std::string, std::string> GetAttributes() const noexcept override;
void SetAttribute(std::string &&name, std::string &&value) override; void SetAttribute(std::string &&name, std::string &&value) override;
void Enable() override; void Enable() override;
@ -427,7 +427,7 @@ AlsaOutput::AlsaOutput(EventLoop &_loop, const ConfigBlock &block)
allowed_formats = Alsa::AllowedFormat::ParseList(allowed_formats_string); allowed_formats = Alsa::AllowedFormat::ParseList(allowed_formats_string);
} }
const std::map<std::string, std::string> std::map<std::string, std::string>
AlsaOutput::GetAttributes() const noexcept AlsaOutput::GetAttributes() const noexcept
{ {
const std::lock_guard<Mutex> lock(attributes_mutex); const std::lock_guard<Mutex> lock(attributes_mutex);