소스 검색

gc_poller: Resolve -Wredundant-move warning

Lioncash 6 년 전
부모
커밋
e19972dfc4
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/input_common/gcadapter/gc_poller.cpp

+ 1 - 2
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.