diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2020-06-19 14:29:36 +0100 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2020-06-19 14:29:36 +0100 |
commit | 8272f53cf925c655e9cde49aaa63ba1766e89c0a (patch) | |
tree | 7e0f8b7b8f5daed1a0b5f36fdace390c6b83fa3d | |
parent | 723639311469b6abb21d766fedad8fad3733106a (diff) |
input_common/keyboard: Remove redundant move
Named return value optimization automatically applies here.
-rw-r--r-- | src/input_common/keyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/keyboard.cpp b/src/input_common/keyboard.cpp index 078374be54..afb8e6612c 100644 --- a/src/input_common/keyboard.cpp +++ b/src/input_common/keyboard.cpp @@ -76,7 +76,7 @@ std::unique_ptr<Input::ButtonDevice> Keyboard::Create(const Common::ParamPackage int key_code = params.Get("code", 0); std::unique_ptr<KeyButton> button = std::make_unique<KeyButton>(key_button_list); key_button_list->AddKeyButton(key_code, button.get()); - return std::move(button); + return button; } void Keyboard::PressKey(int key_code) { |