diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-25 03:35:40 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-25 03:35:40 -0400 |
commit | e19972dfc4697f765cc8008a2b202b407f939551 (patch) | |
tree | aa4f109fb251b7b80ecf135e49d6becda3e0ca15 /src/input_common/gcadapter/gc_poller.cpp | |
parent | e96cf13ebcf9d4aef90583e59eafecc19bb39847 (diff) |
gc_poller: Resolve -Wredundant-move warning
Diffstat (limited to 'src/input_common/gcadapter/gc_poller.cpp')
-rw-r--r-- | src/input_common/gcadapter/gc_poller.cpp | 3 |
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 // 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. |