mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Replace std::ostringstream usage with fmt::format
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user