summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divecomputermanagementdialog.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-15 21:30:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-17 06:53:13 +0900
commitf54764cdbc877e6519a464cf2e31a3877a00bc66 (patch)
tree67ea12c4f49b65832c804f2b7b3e411815223027 /desktop-widgets/divecomputermanagementdialog.h
parent0bc9edf855caf95e2d58ccaf704ceeda079e06f1 (diff)
downloadsubsurface-f54764cdbc877e6519a464cf2e31a3877a00bc66.tar.gz
Cleanup: use QScopedPointer for DiveComputerManagementDialog::model
Not necessary to do own memory management. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divecomputermanagementdialog.h')
-rw-r--r--desktop-widgets/divecomputermanagementdialog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/divecomputermanagementdialog.h b/desktop-widgets/divecomputermanagementdialog.h
index 8c1c3c8a9..365a685d4 100644
--- a/desktop-widgets/divecomputermanagementdialog.h
+++ b/desktop-widgets/divecomputermanagementdialog.h
@@ -3,9 +3,9 @@
#define DIVECOMPUTERMANAGEMENTDIALOG_H
#include <QDialog>
#include "ui_divecomputermanagementdialog.h"
+#include "qt-models/divecomputermodel.h"
class QModelIndex;
-class DiveComputerModel;
class DiveComputerManagementDialog : public QDialog {
Q_OBJECT
@@ -24,7 +24,7 @@ slots:
private:
explicit DiveComputerManagementDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
Ui::DiveComputerManagementDialog ui;
- DiveComputerModel *model;
+ QScopedPointer<DiveComputerModel> model;
};
#endif // DIVECOMPUTERMANAGEMENTDIALOG_H