summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothaddress.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothaddress.h')
-rw-r--r--src/bluetooth/qbluetoothaddress.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothaddress.h b/src/bluetooth/qbluetoothaddress.h
index 414d1f31..8d0bac0a 100644
--- a/src/bluetooth/qbluetoothaddress.h
+++ b/src/bluetooth/qbluetoothaddress.h
@@ -63,11 +63,17 @@ public:
void clear();
- bool operator<(const QBluetoothAddress &other) const;
- bool operator==(const QBluetoothAddress &other) const;
- inline bool operator!=(const QBluetoothAddress &other) const
+ friend bool operator<(const QBluetoothAddress &a, const QBluetoothAddress &b)
{
- return !operator==(other);
+ return a.m_address < b.m_address;
+ }
+ friend bool operator==(const QBluetoothAddress &a, const QBluetoothAddress &b)
+ {
+ return a.m_address == b.m_address;
+ }
+ inline friend bool operator!=(const QBluetoothAddress &a, const QBluetoothAddress &b)
+ {
+ return a.m_address != b.m_address;
}
quint64 toUInt64() const;