diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-12-15 20:50:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-15 20:50:06 +0100 |
| commit | a4592bc3c54d37111b916d707beb2152fdebf5fb (patch) | |
| tree | da63ad590a90a32a15a36180ab2b22a378a7bd31 /Source/Core/InputCommon/ControllerInterface/Device.cpp | |
| parent | 7e7f1fe7136bf6381902e6e17564a2d2d32cc263 (diff) | |
| parent | 6b7d5bb80c296f765494f6a11d230a96fa7143d9 (diff) | |
Merge pull request #6210 from ligfx/qtmappingwindowdontstoredevq
MappingWindow: don't store devq separately from controller default device
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Device.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.cpp b/Source/Core/InputCommon/ControllerInterface/Device.cpp index 48d40cb9af..3c0add95f2 100644 --- a/Source/Core/InputCommon/ControllerInterface/Device.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Device.cpp @@ -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); } // |
