From ffabb6c57b59c6ceafd154681c2cde1bd1a65904 Mon Sep 17 00:00:00 2001 From: get <45425365+Minty-Meeo@users.noreply.github.com> Date: Sat, 17 Jun 2023 19:23:49 -0500 Subject: Replace std::ostringstream usage with fmt::format --- Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 222791f03f..28b91332cc 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -162,15 +162,12 @@ void Device::AddCombinedInput(std::string name, const std::pair -1) - ss << cid; - ss << '/' << name; - - return ss.str(); + return fmt::format("{}/{}/{}", source, cid, name); + else + return fmt::format("{}//{}", source, name); } // -- cgit v1.2.3