src/dialogs/cylindereditor.cpp

changeset 1395
23551de3da36
parent 1391
5fa4bf1fc781
--- a/src/dialogs/cylindereditor.cpp	Fri Jun 08 23:06:56 2018 +0300
+++ b/src/dialogs/cylindereditor.cpp	Sun Jun 10 12:12:50 2018 +0300
@@ -1,14 +1,14 @@
 #include "cylindereditor.h"
 #include "ui_cylindereditor.h"
 
-CylinderEditor::CylinderEditor(QWidget *parent) :
-	QDialog(parent),
-	ui(new Ui::CylinderEditor)
+CylinderEditor::CylinderEditor(QWidget* parent) :
+	QDialog {parent},
+	ui {*new Ui_CylinderEditor}
 {
-	ui->setupUi(this);
+	ui.setupUi(this);
 }
 
 CylinderEditor::~CylinderEditor()
 {
-	delete ui;
+	delete &ui;
 }

mercurial