diff options
Diffstat (limited to 'src/location/maps/qgeoroute.cpp')
-rw-r--r-- | src/location/maps/qgeoroute.cpp | 3 |
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; } |