summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeoroutesegment.cpp
diff options
context:
space:
mode:
authoralex <alex.blasche@nokia.com>2011-12-14 15:28:15 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-19 02:09:38 +0100
commit98cf93c08e33aad4dd617d20e02c845cf053036a (patch)
tree965709029bab49ceb1a09063e054165806882f3e /src/location/maps/qgeoroutesegment.cpp
parent24a7188845f36eebab208ab626803663d8168ac2 (diff)
downloadqtlocation-98cf93c08e33aad4dd617d20e02c845cf053036a.tar.gz
Add unit tests for QGeoRouteSegment and QGeoRoutingManager
This includes a plug-in for testing the routing manager. Change-Id: I8c8da33bf04831ffc3a20304293c338285b73e96 Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'src/location/maps/qgeoroutesegment.cpp')
-rw-r--r--src/location/maps/qgeoroutesegment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/location/maps/qgeoroutesegment.cpp b/src/location/maps/qgeoroutesegment.cpp
index 298351e0..5493c3ab 100644
--- a/src/location/maps/qgeoroutesegment.cpp
+++ b/src/location/maps/qgeoroutesegment.cpp
@@ -109,7 +109,8 @@ QGeoRouteSegment& QGeoRouteSegment::operator= (const QGeoRouteSegment & other)
*/
bool QGeoRouteSegment::operator ==(const QGeoRouteSegment &other) const
{
- return (d_ptr.constData() == other.d_ptr.constData());
+ return ( (d_ptr.constData() == other.d_ptr.constData())
+ || (*d_ptr) == (*other.d_ptr));
}
/*!