summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 17:36:48 +0100
committerLioncash <mathew1800@gmail.com>2021-12-13 17:45:19 +0100
commit54ca48e8b772453814d2e4d49a4ba29a1b46b32d (patch)
treeb8dae22038a45e49c8e318a8991e2f6e89ad752c /src/input_common
parenttas_input: Remove unnecessary semicolon (diff)
downloadyuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar.gz
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar.bz2
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar.lz
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar.xz
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.tar.zst
yuzu-54ca48e8b772453814d2e4d49a4ba29a1b46b32d.zip
Diffstat (limited to 'src/input_common')
-rw-r--r--src/input_common/drivers/tas_input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/tas_input.cpp b/src/input_common/drivers/tas_input.cpp
index 1617ba1d4..2094c1feb 100644
--- a/src/input_common/drivers/tas_input.cpp
+++ b/src/input_common/drivers/tas_input.cpp
@@ -244,7 +244,7 @@ u64 Tas::ReadCommandButtons(const std::string& line) const {
std::string button_line;
u64 buttons = 0;
while (std::getline(button_text, button_line, ';')) {
- for (auto [text, tas_button] : text_to_tas_button) {
+ for (const auto& [text, tas_button] : text_to_tas_button) {
if (text == button_line) {
buttons |= static_cast<u64>(tas_button);
break;
@@ -256,7 +256,7 @@ u64 Tas::ReadCommandButtons(const std::string& line) const {
std::string Tas::WriteCommandButtons(u64 buttons) const {
std::string returns;
- for (auto [text_button, tas_button] : text_to_tas_button) {
+ for (const auto& [text_button, tas_button] : text_to_tas_button) {
if ((buttons & static_cast<u64>(tas_button)) != 0) {
returns += fmt::format("{};", text_button);
}