summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeoroute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeoroute.cpp')
-rw-r--r--src/location/maps/qgeoroute.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/maps/qgeoroute.cpp b/src/location/maps/qgeoroute.cpp
index a641a1de..bc8151e0 100644
--- a/src/location/maps/qgeoroute.cpp
+++ b/src/location/maps/qgeoroute.cpp
@@ -97,6 +97,9 @@ QGeoRoute::~QGeoRoute()
*/
QGeoRoute& QGeoRoute::operator= (const QGeoRoute & other)
{
+ if (this == &other)
+ return *this;
+
d_ptr = other.d_ptr;
return *this;
}