output/Control: allow copy elision (fix -Wpessimizing-move)

This commit is contained in:
Max Kellermann 2020-11-15 19:55:10 +01:00
parent ba5531f9dd
commit 394f69bee1

View File

@ -41,7 +41,7 @@ AudioOutputControl::AudioOutputControl(std::unique_ptr<FilteredAudioOutput> _out
AudioOutputControl::AudioOutputControl(AudioOutputControl *_output,
AudioOutputClient &_client) noexcept
:output(std::move(_output->Steal())),
:output(_output->Steal()),
name(output->GetName()),
client(_client),
thread(BIND_THIS_METHOD(Task))