summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeotilespec.cpp
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2012-04-17 16:56:54 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-19 10:10:01 +0200
commit75b9e531b922ff123fd85c6df238cb199e648e15 (patch)
treec266e0ae94c36ff6b909b05ee889efd139aca602 /src/location/maps/qgeotilespec.cpp
parentca5336e974e2eeac15b39da2e3daf98485c50980 (diff)
downloadqtlocation-75b9e531b922ff123fd85c6df238cb199e648e15.tar.gz
Coverity and compiler warning fixes
Change-Id: Iae536630edbfbda2c0e8c67c48477d5867d25f07 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/maps/qgeotilespec.cpp')
-rw-r--r--src/location/maps/qgeotilespec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/location/maps/qgeotilespec.cpp b/src/location/maps/qgeotilespec.cpp
index 342706fa..9ce3f1b8 100644
--- a/src/location/maps/qgeotilespec.cpp
+++ b/src/location/maps/qgeotilespec.cpp
@@ -158,11 +158,15 @@ QGeoTileSpecPrivate::~QGeoTileSpecPrivate() {}
QGeoTileSpecPrivate& QGeoTileSpecPrivate::operator = (const QGeoTileSpecPrivate &other)
{
+ if (this == &other)
+ return *this;
+
plugin_ = other.plugin_;
mapId_ = other.mapId_;
zoom_ = other.zoom_;
x_ = other.x_;
y_ = other.y_;
+
return *this;
}