summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mapwidget.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-28 20:05:04 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-29 09:14:20 -0800
commit8634dcc3934c80154f62f541f431daa50315df2f (patch)
tree2479037639c98d42dff4b089b78c75fb48b43868 /desktop-widgets/mapwidget.cpp
parent9d1aff297265358c79025d8789b3736c50e919c4 (diff)
downloadsubsurface-8634dcc3934c80154f62f541f431daa50315df2f.tar.gz
cleanup: Uninitialized pointer field
CID 208311 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets/mapwidget.cpp')
-rw-r--r--desktop-widgets/mapwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp
index 4e02ddf41..f5f20dae7 100644
--- a/desktop-widgets/mapwidget.cpp
+++ b/desktop-widgets/mapwidget.cpp
@@ -28,6 +28,8 @@ MapWidget::MapWidget(QWidget *parent) : QQuickWidget(parent)
qmlRegisterType<MapLocationModel>("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel");
qmlRegisterType<MapLocation>("org.subsurfacedivelog.mobile", 1, 0, "MapLocation");
+ m_rootItem = Q_NULLPTR;
+ m_mapHelper = Q_NULLPTR;
setResizeMode(QQuickWidget::SizeRootObjectToView);
connect(this, &QQuickWidget::statusChanged, this, &MapWidget::doneLoading);
setSource(urlMapWidget);