From 1e1f33c0f5ea134b832a6ff52086d83d1ef23111 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 29 Sep 2019 10:44:27 +0200 Subject: Cleanup: Make constructor of singletons private This guarantees that they are actually singletons: there can only be one application-wide instantiation of these objects. Signed-off-by: Berthold Stoeger --- qt-models/gpslistmodel.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-models/gpslistmodel.h') diff --git a/qt-models/gpslistmodel.h b/qt-models/gpslistmodel.h index e705825cc..bce84c985 100644 --- a/qt-models/gpslistmodel.h +++ b/qt-models/gpslistmodel.h @@ -10,7 +10,6 @@ class GpsListModel : public QAbstractListModel { Q_OBJECT public: - enum GpsListRoles { GpsDateRole = Qt::UserRole + 1, GpsNameRole, @@ -20,13 +19,13 @@ public: }; static GpsListModel *instance(); - GpsListModel(); void clear(); int rowCount(const QModelIndex &parent = QModelIndex()) const; QHash roleNames() const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; void update(); private: + GpsListModel(); QVector m_gpsFixes; }; -- cgit v1.2.3-70-g09d2