mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 02:32:46 +01:00
gc_poller: Resolve -Wredundant-move warning
This commit is contained in:
parent
e96cf13ebc
commit
e19972dfc4
1 changed files with 1 additions and 2 deletions
|
@ -76,8 +76,7 @@ std::unique_ptr<Input::ButtonDevice> GCButtonFactory::Create(const Common::Param
|
||||||
|
|
||||||
// button is not an axis/stick button
|
// button is not an axis/stick button
|
||||||
if (button_id != PAD_STICK_ID) {
|
if (button_id != PAD_STICK_ID) {
|
||||||
auto button = std::make_unique<GCButton>(port, button_id, adapter.get());
|
return std::make_unique<GCButton>(port, button_id, adapter.get());
|
||||||
return std::move(button);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// For Axis buttons, used by the binary sticks.
|
// For Axis buttons, used by the binary sticks.
|
||||||
|
|
Loading…
Reference in a new issue