mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-13 14:20:22 +02:00
DeviceQualifier: small cleanup
This commit is contained in:
1 parent
ac855e2c93
commit
6b7d5bb80c
2 files changed
+5
-6
No files matched your search
@@ -87,15 +87,17 @@ std::string DeviceQualifier::ToString() const
|
||||
//
|
||||
void DeviceQualifier::FromString(const std::string& str)
|
||||
{
|
||||
*this = {};
|
||||
|
||||
std::istringstream ss(str);
|
||||
|
||||
std::getline(ss, source = "", '/');
|
||||
std::getline(ss, source, '/');
|
||||
|
||||
// silly
|
||||
std::getline(ss, name, '/');
|
||||
std::istringstream(name) >> (cid = -1);
|
||||
std::istringstream(name) >> cid;
|
||||
|
||||
std::getline(ss, name = "");
|
||||
std::getline(ss, name);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user