summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeotiledmappingmanagerengine_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-04-28 14:00:39 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-05-21 08:13:17 +0000
commit3c674e0ec3fcbb1acebd27580ef005d7f6726719 (patch)
tree970902e2baa57b31bd2851ec1b987e4f70eeb4b1 /src/location/maps/qgeotiledmappingmanagerengine_p.h
parent52b887a8004029cf18942b5d16b1dcf396feabc0 (diff)
downloadqtlocation-3c674e0ec3fcbb1acebd27580ef005d7f6726719.tar.gz
Fix missing guarded pointers for mapping engine
Since mapping engine is going to be destroyed on geoseriveprovider change/plugin unload use QPointer to track engine existence before making calls. This commit refactors a bit QGeoTileRequestManager to handle all the calls to the enigne. Check for null pointer before calling the engine. Move registerMap method to base class. Update QGeoTiledMapNokia class accordingly. Change-Id: I886e85e660b2c515e4a617e98e9cc0c3c13781b6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeotiledmappingmanagerengine_p.h')
-rw-r--r--src/location/maps/qgeotiledmappingmanagerengine_p.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/location/maps/qgeotiledmappingmanagerengine_p.h b/src/location/maps/qgeotiledmappingmanagerengine_p.h
index d6f80db9..6cc4caea 100644
--- a/src/location/maps/qgeotiledmappingmanagerengine_p.h
+++ b/src/location/maps/qgeotiledmappingmanagerengine_p.h
@@ -72,10 +72,9 @@ public:
QGeoTileFetcher *tileFetcher();
- virtual QGeoMap *createMap();
-
- void registerMap(QGeoTiledMap *map);
- void deregisterMap(QGeoTiledMap *map);
+ QGeoMap *createMap() Q_DECL_OVERRIDE;
+ void registerMap(QGeoMap *map) Q_DECL_OVERRIDE;
+ void deregisterMap(QGeoMap *map) Q_DECL_OVERRIDE;
QSize tileSize() const;