From 08e183d322981c705ba9fc7f4f1476cc7e7e5f23 Mon Sep 17 00:00:00 2001 From: "Dr. Dystopia" Date: Sun, 19 Jul 2026 20:30:21 +0200 Subject: Replace string concatination with `fmt::format` --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/evdev') diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index bb51d0026e..0f6730720f 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -14,6 +14,8 @@ #include #include +#include + #include "Common/Assert.h" #include "Common/Flag.h" #include "Common/Logging/Log.h" @@ -114,7 +116,7 @@ protected: } } - std::string GetIndexedName() const { return "Button " + std::to_string(m_index); } + std::string GetIndexedName() const { return fmt::format("Button {}", m_index); } const u8 m_index; }; @@ -184,7 +186,7 @@ public: protected: std::string GetIndexedName() const { - return "Axis " + std::to_string(m_index) + (m_range < 0 ? '-' : '+'); + return fmt::format("Axis {}{}", m_index, m_range < 0 ? '-' : '+'); } private: -- cgit v1.2.3