DeviceQualifier: small cleanup
This commit is contained in:
parent
ac855e2c93
commit
6b7d5bb80c
|
@ -87,15 +87,17 @@ std::string DeviceQualifier::ToString() const
|
||||||
//
|
//
|
||||||
void DeviceQualifier::FromString(const std::string& str)
|
void DeviceQualifier::FromString(const std::string& str)
|
||||||
{
|
{
|
||||||
|
*this = {};
|
||||||
|
|
||||||
std::istringstream ss(str);
|
std::istringstream ss(str);
|
||||||
|
|
||||||
std::getline(ss, source = "", '/');
|
std::getline(ss, source, '/');
|
||||||
|
|
||||||
// silly
|
// silly
|
||||||
std::getline(ss, name, '/');
|
std::getline(ss, name, '/');
|
||||||
std::istringstream(name) >> (cid = -1);
|
std::istringstream(name) >> cid;
|
||||||
|
|
||||||
std::getline(ss, name = "");
|
std::getline(ss, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -18,9 +18,6 @@ namespace ciface
|
||||||
{
|
{
|
||||||
namespace Core
|
namespace Core
|
||||||
{
|
{
|
||||||
// Forward declarations
|
|
||||||
class DeviceQualifier;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Device
|
// Device
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue