瀏覽代碼

input_common/motion_emu: Remove redundant move

Named return value optimization automatically applies here.
MerryMage 6 年之前
父節點
當前提交
c6a963c48e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/input_common/motion_emu.cpp

+ 1 - 1
src/input_common/motion_emu.cpp

@@ -145,7 +145,7 @@ std::unique_ptr<Input::MotionDevice> MotionEmu::Create(const Common::ParamPackag
     // Previously created device is disconnected here. Having two motion devices for 3DS is not
     // expected.
     current_device = device_wrapper->device;
-    return std::move(device_wrapper);
+    return device_wrapper;
 }
 
 void MotionEmu::BeginTilt(int x, int y) {