From 394f69bee16c567e13b2fbcd371614191ae0a8c3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 15 Nov 2020 19:55:10 +0100 Subject: [PATCH] output/Control: allow copy elision (fix -Wpessimizing-move) --- src/output/Control.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/Control.cxx b/src/output/Control.cxx index f05ec29ff..035739312 100644 --- a/src/output/Control.cxx +++ b/src/output/Control.cxx @@ -41,7 +41,7 @@ AudioOutputControl::AudioOutputControl(std::unique_ptr _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))