summaryrefslogtreecommitdiff
path: root/src/input_common/gcadapter
diff options
context:
space:
mode:
authorGravatar Lioncash2020-07-25 03:35:40 -0400
committerGravatar Lioncash2020-07-25 03:35:40 -0400
commite19972dfc4697f765cc8008a2b202b407f939551 (patch)
treeaa4f109fb251b7b80ecf135e49d6becda3e0ca15 /src/input_common/gcadapter
parentMerge pull request #4383 from ogniK5377/dark-checkbox (diff)
downloadyuzu-e19972dfc4697f765cc8008a2b202b407f939551.tar.gz
yuzu-e19972dfc4697f765cc8008a2b202b407f939551.tar.xz
yuzu-e19972dfc4697f765cc8008a2b202b407f939551.zip
gc_poller: Resolve -Wredundant-move warning
Diffstat (limited to 'src/input_common/gcadapter')
-rw-r--r--src/input_common/gcadapter/gc_poller.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input_common/gcadapter/gc_poller.cpp b/src/input_common/gcadapter/gc_poller.cpp
index 96e22d3ad..65454cb42 100644
--- a/src/input_common/gcadapter/gc_poller.cpp
+++ b/src/input_common/gcadapter/gc_poller.cpp
@@ -76,8 +76,7 @@ std::unique_ptr<Input::ButtonDevice> GCButtonFactory::Create(const Common::Param
76 76
77 // button is not an axis/stick button 77 // button is not an axis/stick button
78 if (button_id != PAD_STICK_ID) { 78 if (button_id != PAD_STICK_ID) {
79 auto button = std::make_unique<GCButton>(port, button_id, adapter.get()); 79 return std::make_unique<GCButton>(port, button_id, adapter.get());
80 return std::move(button);
81 } 80 }
82 81
83 // For Axis buttons, used by the binary sticks. 82 // For Axis buttons, used by the binary sticks.