diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-08 17:16:57 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 20:23:55 -0700 |
| commit | e8d5fb89e4465e8ef64920f12e7cb60e82057658 (patch) | |
| tree | eda79c38cbe3b018b91038d642ccc48bcc9f93b8 /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | |
| parent | b5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff) | |
C++20: Synthesize `operator!=` From `operator==`
The inequality operator is automatically generated by the compiler if `operator==` is defined.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 720ea82735..8cf3e763e8 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -227,21 +227,11 @@ bool DeviceQualifier::operator==(const Device* const dev) const return false; } -bool DeviceQualifier::operator!=(const Device* const dev) const -{ - return !operator==(dev); -} - bool DeviceQualifier::operator==(const DeviceQualifier& devq) const { return std::tie(cid, name, source) == std::tie(devq.cid, devq.name, devq.source); } -bool DeviceQualifier::operator!=(const DeviceQualifier& devq) const -{ - return !operator==(devq); -} - std::shared_ptr<Device> DeviceContainer::FindDevice(const DeviceQualifier& devq) const { std::lock_guard lk(m_devices_mutex); |
