summaryrefslogtreecommitdiffstats
path: root/src/input_common/keyboard.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-03 06:18:52 +0200
committerGitHub <noreply@github.com>2018-08-03 06:18:52 +0200
commit9e48ca23b2522ba60138641a587ada0694d27c47 (patch)
tree045c1f47c8ff1dd968f69d706b35861319ece363 /src/input_common/keyboard.cpp
parentMerge pull request #907 from lioncash/slot (diff)
parentinput_common: Use std::move where applicable (diff)
downloadyuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.gz
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.bz2
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.lz
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.xz
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.zst
yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.zip
Diffstat (limited to 'src/input_common/keyboard.cpp')
-rw-r--r--src/input_common/keyboard.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input_common/keyboard.cpp b/src/input_common/keyboard.cpp
index 0f0d10f23..525fe6abc 100644
--- a/src/input_common/keyboard.cpp
+++ b/src/input_common/keyboard.cpp
@@ -5,6 +5,7 @@
#include <atomic>
#include <list>
#include <mutex>
+#include <utility>
#include "input_common/keyboard.h"
namespace InputCommon {
@@ -12,9 +13,9 @@ namespace InputCommon {
class KeyButton final : public Input::ButtonDevice {
public:
explicit KeyButton(std::shared_ptr<KeyButtonList> key_button_list_)
- : key_button_list(key_button_list_) {}
+ : key_button_list(std::move(key_button_list_)) {}
- ~KeyButton();
+ ~KeyButton() override;
bool GetStatus() const override {
return status.load();