[PD] make pointers to the UI std::unique_ptr

Same as PR #4293, just for PartDesign

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 PartDesign dialogs that don't already use a unique_ptr.
This commit is contained in:
donovaly
2021-02-05 02:45:37 +01:00
committed by wmayer
parent a544951dcd
commit 2ac84872ec
40 changed files with 74 additions and 101 deletions

View File

@@ -54,11 +54,11 @@ using namespace Gui;
/* TRANSLATOR PartDesignGui::TaskPadParameters */
TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView, QWidget *parent, bool newObj)
: TaskSketchBasedParameters(PadView, parent, "PartDesign_Pad",tr("Pad parameters"))
: TaskSketchBasedParameters(PadView, parent, "PartDesign_Pad", tr("Pad parameters"))
, ui(new Ui_TaskPadParameters)
{
// we need a separate container widget to add all controls to
proxy = new QWidget(this);
ui = new Ui_TaskPadParameters();
ui->setupUi(proxy);
#if QT_VERSION >= 0x040700
ui->lineFaceName->setPlaceholderText(tr("No face selected"));
@@ -487,7 +487,6 @@ QString TaskPadParameters::getFaceName(void) const
TaskPadParameters::~TaskPadParameters()
{
delete ui;
}
void TaskPadParameters::changeEvent(QEvent *e)