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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-09-29 10:44:27 +02:00 committed by Dirk Hohndel
parent 3db50aedea
commit 1e1f33c0f5
2 changed files with 4 additions and 5 deletions

View file

@ -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<int, QByteArray> roleNames() const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
void update();
private:
GpsListModel();
QVector<gpsTracker> m_gpsFixes;
};