mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: Uninitialized pointer field
CID 208311 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
9d1aff2972
commit
8634dcc393
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ MapWidget::MapWidget(QWidget *parent) : QQuickWidget(parent)
|
||||||
qmlRegisterType<MapLocationModel>("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel");
|
qmlRegisterType<MapLocationModel>("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel");
|
||||||
qmlRegisterType<MapLocation>("org.subsurfacedivelog.mobile", 1, 0, "MapLocation");
|
qmlRegisterType<MapLocation>("org.subsurfacedivelog.mobile", 1, 0, "MapLocation");
|
||||||
|
|
||||||
|
m_rootItem = Q_NULLPTR;
|
||||||
|
m_mapHelper = Q_NULLPTR;
|
||||||
setResizeMode(QQuickWidget::SizeRootObjectToView);
|
setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||||
connect(this, &QQuickWidget::statusChanged, this, &MapWidget::doneLoading);
|
connect(this, &QQuickWidget::statusChanged, this, &MapWidget::doneLoading);
|
||||||
setSource(urlMapWidget);
|
setSource(urlMapWidget);
|
||||||
|
|
Loading…
Reference in a new issue