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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user