diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-28 13:13:18 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-28 17:30:25 +0100 |
commit | 803759efea1aa648dafad2f15fd95da228df8dbb (patch) | |
tree | ccce1878bf6fbbd9b61cf059d7ede1b77ee2634a /qt-models/maplocationmodel.cpp | |
parent | 1ce9b5bb9af7c67644b071ba5f2e14bb00f04e7c (diff) | |
download | subsurface-803759efea1aa648dafad2f15fd95da228df8dbb.tar.gz |
cleanup: Uninitialized scalar field
CID 208317
CID 208325
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r-- | qt-models/maplocationmodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index d8070862e..a4afe76e2 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -8,6 +8,7 @@ const char *MapLocation::PROPERTY_NAME_NAME = "name"; MapLocation::MapLocation() { + m_uuid = 0; } MapLocation::MapLocation(quint32 uuid, QGeoCoordinate coord, QString name) : @@ -55,6 +56,7 @@ MapLocationModel::MapLocationModel(QObject *parent) : QAbstractListModel(parent) m_roles[MapLocation::Roles::RoleUuid] = MapLocation::PROPERTY_NAME_UUID; m_roles[MapLocation::Roles::RoleCoordinate] = MapLocation::PROPERTY_NAME_COORDINATE; m_roles[MapLocation::Roles::RoleName] = MapLocation::PROPERTY_NAME_NAME; + m_selectedUuid = 0; } MapLocationModel::~MapLocationModel() |