From 5862d1fc41efd8011fb776e32ef11e6ed2ec0a49 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 3 Jun 2017 19:32:46 -0400 Subject: Device: Provide operator!= counterparts to operator== for DeviceQualifier Makes comparison logic symmetric --- Source/Core/InputCommon/ControllerInterface/Device.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h') 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; -- cgit v1.2.3