diff options
| author | 2021-12-13 09:05:23 -0500 | |
|---|---|---|
| committer | 2021-12-13 09:05:50 -0500 | |
| commit | 2b92d22bda767c7c723935c357bea474f8e2d2f8 (patch) | |
| tree | e732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/drivers/mouse.h | |
| parent | input_engine: Remove callback clearing in constructor (diff) | |
| download | yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.gz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.xz yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.zip | |
input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/drivers/mouse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.h index 4a1fd2fd9..040446178 100644 --- a/src/input_common/drivers/mouse.h +++ b/src/input_common/drivers/mouse.h | |||
| @@ -27,9 +27,9 @@ enum class MouseButton { | |||
| 27 | * A button device factory representing a keyboard. It receives keyboard events and forward them | 27 | * A button device factory representing a keyboard. It receives keyboard events and forward them |
| 28 | * to all button devices it created. | 28 | * to all button devices it created. |
| 29 | */ | 29 | */ |
| 30 | class Mouse final : public InputCommon::InputEngine { | 30 | class Mouse final : public InputEngine { |
| 31 | public: | 31 | public: |
| 32 | explicit Mouse(const std::string& input_engine_); | 32 | explicit Mouse(std::string input_engine_); |
| 33 | 33 | ||
| 34 | /** | 34 | /** |
| 35 | * Signals that mouse has moved. | 35 | * Signals that mouse has moved. |