summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergyservicedata.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-03-09 09:34:07 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-03-09 13:53:44 +0000
commit9a0b00a9fb7ce843a47bc931cc4e58e43a5d3bdf (patch)
tree6c84ab5cb478b1bf17e609a9a9e00cd6d1206a99 /src/bluetooth/qlowenergyservicedata.cpp
parentf15b2e266094edac11c3825c1df42396b6a76a6c (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.cpp')
-rw-r--r--src/bluetooth/qlowenergyservicedata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergyservicedata.cpp b/src/bluetooth/qlowenergyservicedata.cpp
index 3073f4f5..f40addd2 100644
--- a/src/bluetooth/qlowenergyservicedata.cpp
+++ b/src/bluetooth/qlowenergyservicedata.cpp
@@ -201,7 +201,7 @@ bool QLowEnergyServiceData::isValid() const
Returns \c true if \a sd1 and \a sd2 are equal with respect to their public state,
otherwise returns \c false.
*/
-bool operator==(const QLowEnergyServiceData sd1, const QLowEnergyServiceData &sd2)
+bool operator==(const QLowEnergyServiceData &sd1, const QLowEnergyServiceData &sd2)
{
return sd1.d == sd2.d || (sd1.type() == sd2.type() && sd1.uuid() == sd2.uuid()
&& sd1.includedServices() == sd2.includedServices()