Cleanup: use QScopedPointer for DiveComputerManagementDialog::model

Not necessary to do own memory management.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-06-15 21:30:49 +02:00 committed by Dirk Hohndel
parent 0bc9edf855
commit f54764cdbc
2 changed files with 5 additions and 7 deletions

View file

@ -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