diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-03-09 09:34:07 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-03-09 13:53:44 +0000 |
commit | 9a0b00a9fb7ce843a47bc931cc4e58e43a5d3bdf (patch) | |
tree | 6c84ab5cb478b1bf17e609a9a9e00cd6d1206a99 /src/bluetooth/qlowenergyservicedata.h | |
parent | f15b2e266094edac11c3825c1df42396b6a76a6c (diff) |
Fix QLEServiceData comparison operator inconsistency
The comparison operators usually have const& parameters.
Change-Id: Ibd8e7d1fe5704b4de3a0bfabe1bbc991411eecba
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergyservicedata.h')
-rw-r--r-- | src/bluetooth/qlowenergyservicedata.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bluetooth/qlowenergyservicedata.h b/src/bluetooth/qlowenergyservicedata.h index 9a5a6448..48f7fe89 100644 --- a/src/bluetooth/qlowenergyservicedata.h +++ b/src/bluetooth/qlowenergyservicedata.h @@ -52,7 +52,7 @@ struct QLowEnergyServiceDataPrivate; class Q_BLUETOOTH_EXPORT QLowEnergyServiceData { - friend Q_BLUETOOTH_EXPORT bool operator==(const QLowEnergyServiceData sd1, + friend Q_BLUETOOTH_EXPORT bool operator==(const QLowEnergyServiceData &sd1, const QLowEnergyServiceData &sd2); public: QLowEnergyServiceData(); @@ -84,9 +84,9 @@ private: QSharedDataPointer<QLowEnergyServiceDataPrivate> d; }; -Q_BLUETOOTH_EXPORT bool operator==(const QLowEnergyServiceData sd1, +Q_BLUETOOTH_EXPORT bool operator==(const QLowEnergyServiceData &sd1, const QLowEnergyServiceData &sd2); -inline bool operator!=(const QLowEnergyServiceData sd1, const QLowEnergyServiceData &sd2) +inline bool operator!=(const QLowEnergyServiceData &sd1, const QLowEnergyServiceData &sd2) { return !(sd1 == sd2); } |