remove redundant const qualification
Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
140d8547c7
commit
1923cf3844
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue