summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-01 00:26:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commitc5f355ee8bb44e7047e93583e4810ae574873e70 (patch)
tree2fbf483097bed22013ddebc649dd6c690755b3b5 /qt-models/maplocationmodel.h
parent0c374af176f961c45fadb716af55789984d257b6 (diff)
downloadsubsurface-c5f355ee8bb44e7047e93583e4810ae574873e70.tar.gz
Cleanup: remove default constructor from MapLocation
Since this is no longer a Q_METATYPE, nobody will try to default construct this object. Remove the default constructor and guarantee that there will be no null divesite. Of course, the lack of default constructor means that the default argument to the "selected" member variable should be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r--qt-models/maplocationmodel.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h
index cb8252a3a..2aef697a2 100644
--- a/qt-models/maplocationmodel.h
+++ b/qt-models/maplocationmodel.h
@@ -13,7 +13,6 @@
class MapLocation
{
public:
- explicit MapLocation();
explicit MapLocation(struct dive_site *ds, QGeoCoordinate coord, QString name, bool selected);
QVariant getRole(int role) const;
@@ -30,7 +29,7 @@ public:
struct dive_site *divesite;
QGeoCoordinate coordinate;
QString name;
- bool selected = false;
+ bool selected;
};
class MapLocationModel : public QAbstractListModel