summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/tas_input.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2021-12-13 09:05:23 -0500
committerGravatar Lioncash2021-12-13 09:05:50 -0500
commit2b92d22bda767c7c723935c357bea474f8e2d2f8 (patch)
treee732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/drivers/tas_input.cpp
parentinput_engine: Remove callback clearing in constructor (diff)
downloadyuzu-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/tas_input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp
index 0e01fb0d9..a2bedc951 100644
--- a/src/input_common/drivers/tas_input.cpp
+++ b/src/input_common/drivers/tas_input.cpp
@@ -47,7 +47,7 @@ constexpr std::array<std::pair<std::string_view, TasButton>, 20> text_to_tas_but
47 {"KEY_ZR", TasButton::TRIGGER_ZR}, 47 {"KEY_ZR", TasButton::TRIGGER_ZR},
48}; 48};
49 49
50Tas::Tas(const std::string& input_engine_) : InputCommon::InputEngine(input_engine_) { 50Tas::Tas(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
51 for (size_t player_index = 0; player_index < PLAYER_NUMBER; player_index++) { 51 for (size_t player_index = 0; player_index < PLAYER_NUMBER; player_index++) {
52 PadIdentifier identifier{ 52 PadIdentifier identifier{
53 .guid = Common::UUID{}, 53 .guid = Common::UUID{},