[Part] make pointers to the UI std::unique_ptr
Same as PR #4293, just for Part as noted in https://github.com/FreeCAD/FreeCAD/pull/4271#discussion_r554673632 the pointer to the UI should be a unique pointer. This PR does this for all Part dialogs that don't already use a unique_ptr.
This commit is contained in:
@@ -101,10 +101,8 @@ public:
|
||||
};
|
||||
|
||||
DlgRevolution::DlgRevolution(QWidget* parent, Qt::WindowFlags fl)
|
||||
: QDialog(parent, fl), filter(0)
|
||||
: QDialog(parent, fl), filter(0), ui(new Ui_DlgRevolution)
|
||||
{
|
||||
ui = new Ui_DlgRevolution();
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->xPos->setRange(-DBL_MAX,DBL_MAX);
|
||||
@@ -141,7 +139,6 @@ DlgRevolution::~DlgRevolution()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
delete ui;
|
||||
}
|
||||
|
||||
Base::Vector3d DlgRevolution::getDirection() const
|
||||
|
||||
Reference in New Issue
Block a user