From 803759efea1aa648dafad2f15fd95da228df8dbb Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 28 Dec 2017 13:13:18 +0100 Subject: cleanup: Uninitialized scalar field CID 208317 CID 208325 Signed-off-by: Jan Mulder --- qt-models/maplocationmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models') 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() -- cgit v1.2.3-70-g09d2