diff options
| author | 2018-08-03 00:18:52 -0400 | |
|---|---|---|
| committer | 2018-08-03 00:18:52 -0400 | |
| commit | 9e48ca23b2522ba60138641a587ada0694d27c47 (patch) | |
| tree | 045c1f47c8ff1dd968f69d706b35861319ece363 /src/input_common/keyboard.cpp | |
| parent | Merge pull request #907 from lioncash/slot (diff) | |
| parent | input_common: Use std::move where applicable (diff) | |
| download | yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.gz yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.tar.xz yuzu-9e48ca23b2522ba60138641a587ada0694d27c47.zip | |
Merge pull request #906 from lioncash/override
input_common: minor changes
Diffstat (limited to 'src/input_common/keyboard.cpp')
| -rw-r--r-- | src/input_common/keyboard.cpp | 5 |
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 @@ | |||
| 5 | #include <atomic> | 5 | #include <atomic> |
| 6 | #include <list> | 6 | #include <list> |
| 7 | #include <mutex> | 7 | #include <mutex> |
| 8 | #include <utility> | ||
| 8 | #include "input_common/keyboard.h" | 9 | #include "input_common/keyboard.h" |
| 9 | 10 | ||
| 10 | namespace InputCommon { | 11 | namespace InputCommon { |
| @@ -12,9 +13,9 @@ namespace InputCommon { | |||
| 12 | class KeyButton final : public Input::ButtonDevice { | 13 | class KeyButton final : public Input::ButtonDevice { |
| 13 | public: | 14 | public: |
| 14 | explicit KeyButton(std::shared_ptr<KeyButtonList> key_button_list_) | 15 | explicit KeyButton(std::shared_ptr<KeyButtonList> key_button_list_) |
| 15 | : key_button_list(key_button_list_) {} | 16 | : key_button_list(std::move(key_button_list_)) {} |
| 16 | 17 | ||
| 17 | ~KeyButton(); | 18 | ~KeyButton() override; |
| 18 | 19 | ||
| 19 | bool GetStatus() const override { | 20 | bool GetStatus() const override { |
| 20 | return status.load(); | 21 | return status.load(); |