mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: Uninitialized scalar field
CID 208317 CID 208325 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
1ce9b5bb9a
commit
803759efea
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue