output/Control: inline GetName()

This commit is contained in:
Max Kellermann 2022-07-13 11:30:48 +02:00
parent fef79931c5
commit e74788ea32
2 changed files with 3 additions and 7 deletions

View File

@ -99,12 +99,6 @@ AudioOutputControl::ReplaceDummy(std::unique_ptr<FilteredAudioOutput> new_output
client.ApplyEnabled();
}
const char *
AudioOutputControl::GetName() const noexcept
{
return name.c_str();
}
const char *
AudioOutputControl::GetPluginName() const noexcept
{

View File

@ -269,7 +269,9 @@ public:
AudioOutputControl &operator=(const AudioOutputControl &) = delete;
[[gnu::pure]]
const char *GetName() const noexcept;
const char *GetName() const noexcept {
return name.c_str();
}
[[gnu::pure]]
const char *GetPluginName() const noexcept;