[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:
@@ -65,14 +65,12 @@ using namespace Gui;
|
||||
|
||||
TaskTransformedParameters::TaskTransformedParameters(ViewProviderTransformed *TransformedView, QWidget *parent)
|
||||
: TaskBox(Gui::BitmapFactory().pixmap((std::string("PartDesign_") + TransformedView->featureName).c_str()),
|
||||
QString::fromLatin1((TransformedView->featureName + " parameters").c_str()),
|
||||
true,
|
||||
parent),
|
||||
proxy(nullptr),
|
||||
TransformedView(TransformedView),
|
||||
parentTask(nullptr),
|
||||
insideMultiTransform(false),
|
||||
blockUpdate(false)
|
||||
QString::fromLatin1((TransformedView->featureName + " parameters").c_str()), true, parent)
|
||||
, proxy(nullptr)
|
||||
, TransformedView(TransformedView)
|
||||
, parentTask(nullptr)
|
||||
, insideMultiTransform(false)
|
||||
, blockUpdate(false)
|
||||
{
|
||||
selectionMode = none;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user