diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-04-28 14:00:39 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-05-21 08:13:17 +0000 |
commit | 3c674e0ec3fcbb1acebd27580ef005d7f6726719 (patch) | |
tree | 970902e2baa57b31bd2851ec1b987e4f70eeb4b1 /src/location/maps/qgeomap_p_p.h | |
parent | 52b887a8004029cf18942b5d16b1dcf396feabc0 (diff) | |
download | qtlocation-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/qgeomap_p_p.h')
-rw-r--r-- | src/location/maps/qgeomap_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeomap_p_p.h b/src/location/maps/qgeomap_p_p.h index c106adf8..e7a23060 100644 --- a/src/location/maps/qgeomap_p_p.h +++ b/src/location/maps/qgeomap_p_p.h @@ -77,7 +77,7 @@ protected: int m_width; int m_height; double m_aspectRatio; - QGeoMappingManagerEngine *m_engine; + QPointer<QGeoMappingManagerEngine> m_engine; QString m_pluginString; QGeoMapController *m_controller; QGeoCameraData m_cameraData; |