diff options
| author | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-17 19:23:49 -0500 |
|---|---|---|
| committer | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-18 18:37:32 -0500 |
| commit | ffabb6c57b59c6ceafd154681c2cde1bd1a65904 (patch) | |
| tree | 05eb0486ca6620cdd18af9b65000bfa5be6ad104 /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | |
| parent | 44498872e9dbf0c3d14397df2b4255ac2efe0f11 (diff) | |
Replace std::ostringstream usage with fmt::format
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
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<std::string, std std::string DeviceQualifier::ToString() const { if (source.empty() && (cid < 0) && name.empty()) - return ""; + return {}; - std::ostringstream ss; - ss << source << '/'; if (cid > -1) - ss << cid; - ss << '/' << name; - - return ss.str(); + return fmt::format("{}/{}/{}", source, cid, name); + else + return fmt::format("{}//{}", source, name); } // |
