diff options
author | BogDan Vatra <bogdan@kdab.com> | 2017-08-09 16:37:39 +0300 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-08-09 14:16:49 +0000 |
commit | c832af789766fcebd8cfb15e53ce14f36278ca6d (patch) | |
tree | 38912b17259836977c202939225e03928bce34dc | |
parent | 602cd4845dff2bbe5a8118899f1dfbcca9d614f1 (diff) | |
download | qtlocation-c832af789766fcebd8cfb15e53ce14f36278ca6d.tar.gz |
Fix routes comparison
Change-Id: Ie02061804efdb79911a997bd017d13ed0d65d262
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r-- | src/location/maps/qgeoroute.cpp | 4 |
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()); } /*! |