diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-06-03 19:32:46 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-06-03 19:34:35 -0400 |
| commit | 5862d1fc41efd8011fb776e32ef11e6ed2ec0a49 (patch) | |
| tree | 03e4cf10422d5913fe3205a83ae522668abda985 /Source/Core/InputCommon/ControllerInterface/Device.h | |
| parent | 4b53093acbbbf060ac12186aacf9d0f157965e1b (diff) | |
Device: Provide operator!= counterparts to operator== for DeviceQualifier
Makes comparison logic symmetric
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Device.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h index bda6f1fb0a..7b601cc775 100644 --- a/Source/Core/InputCommon/ControllerInterface/Device.h +++ b/Source/Core/InputCommon/ControllerInterface/Device.h @@ -136,8 +136,12 @@ public: void FromDevice(const Device* const dev); void FromString(const std::string& str); std::string ToString() const; + bool operator==(const DeviceQualifier& devq) const; - bool operator==(const Device* const dev) const; + bool operator!=(const DeviceQualifier& devq) const; + + bool operator==(const Device* dev) const; + bool operator!=(const Device* dev) const; std::string source; int cid; |
