diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-28 23:05:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-04 09:19:10 -0700 |
commit | 36d42a6a57e8f79de1c8daf01e77a811ef0392dc (patch) | |
tree | 313b56c6cc4cba5bb72a52c6390d7f6b6d7f6f6a /subsurface-helper.cpp | |
parent | 2560734624d404728b28ff7c5e7e34a1006a4b36 (diff) | |
download | subsurface-36d42a6a57e8f79de1c8daf01e77a811ef0392dc.tar.gz |
Cleanup: turn DiveListModel into standard singleton
DiveListModel was one of those "special" singletons that could
be created explicitly with new. This would make sense if a
parameter were passed to the constructor. We only passed null,
so one might as well turn that into a classical singleton with
default constructor.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r-- | subsurface-helper.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 63096e22a..1a0473b40 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -96,8 +96,6 @@ void run_ui() qDebug() << "QML import path" << engine.importPathList(); #endif // __APPLE__ not Q_OS_IOS engine.addImportPath("qrc://imports"); - DiveListModel diveListModel; - LOG_STP("run_ui diveListModel started"); DiveListSortModel *sortModel = new DiveListSortModel(0); GpsListModel gpsListModel; QSortFilterProxyModel *gpsSortModel = new QSortFilterProxyModel(nullptr); |