--- 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; }