2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gc_poller: Resolve -Wredundant-move warning

This commit is contained in:
Lioncash 2020-07-25 03:35:40 -04:00
parent e96cf13ebc
commit e19972dfc4

View file

@ -76,8 +76,7 @@ std::unique_ptr<Input::ButtonDevice> GCButtonFactory::Create(const Common::Param
// button is not an axis/stick button
if (button_id != PAD_STICK_ID) {
auto button = std::make_unique<GCButton>(port, button_id, adapter.get());
return std::move(button);
return std::make_unique<GCButton>(port, button_id, adapter.get());
}
// For Axis buttons, used by the binary sticks.