2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-17 02:57:02 +00:00

General: Use unique_ptr for UI instances

Gets rid of the need for manual new and delete.
This commit is contained in:
Lioncash
2019-08-25 20:50:17 -04:00
parent a357648a99
commit 02e910c4ef
4 changed files with 20 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <memory>
#include <QDialog>
#include <QStringListModel>
@@ -11,10 +13,11 @@ class ArgumentEditor;
class ArgumentEditor : public QDialog {
Q_OBJECT
Ui::ArgumentEditor* m_ui;
std::unique_ptr<Ui::ArgumentEditor> m_ui;
QStringListModel m_model;
public:
explicit ArgumentEditor(QWidget* parent = 0);
explicit ArgumentEditor(QWidget* parent = nullptr);
virtual ~ArgumentEditor();
private slots: