Replace std::ostringstream usage with fmt::format

This commit is contained in:
get committed 2023-06-18 18:37:32 -05:00
1 parent 44498872e9
commit ffabb6c57b
6 files changed
+27 -49

No files matched your search

@@ -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);
}
//