summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2017-08-09 16:37:39 +0300
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-08-09 14:16:49 +0000
commitc832af789766fcebd8cfb15e53ce14f36278ca6d (patch)
tree38912b17259836977c202939225e03928bce34dc
parent602cd4845dff2bbe5a8118899f1dfbcca9d614f1 (diff)
downloadqtlocation-c832af789766fcebd8cfb15e53ce14f36278ca6d.tar.gz
Fix routes comparison
Change-Id: Ie02061804efdb79911a997bd017d13ed0d65d262 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r--src/location/maps/qgeoroute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/maps/qgeoroute.cpp b/src/location/maps/qgeoroute.cpp
index 52fa4a5e..facf1949 100644
--- a/src/location/maps/qgeoroute.cpp
+++ b/src/location/maps/qgeoroute.cpp
@@ -104,7 +104,7 @@ QGeoRoute &QGeoRoute::operator= (const QGeoRoute & other)
*/
bool QGeoRoute::operator ==(const QGeoRoute &other) const
{
- return (d_ptr.constData() == other.d_ptr.constData());
+ return (*d_ptr.constData() == *other.d_ptr.constData());
}
/*!
@@ -112,7 +112,7 @@ bool QGeoRoute::operator ==(const QGeoRoute &other) const
*/
bool QGeoRoute::operator !=(const QGeoRoute &other) const
{
- return (d_ptr.constData() != other.d_ptr.constData());
+ return !(*d_ptr.constData() == *other.d_ptr.constData());
}
/*!