[Sketcher] make more pointers to the UI std::unique_ptr
addendum to PR #4362 (Same as PR #4293, just for Sketcher 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 Sketcher dialogs that don't already use a unique_ptr.)
This commit is contained in:
@@ -62,7 +62,6 @@ SketcherSettings::SketcherSettings(QWidget* parent)
|
||||
SketcherSettings::~SketcherSettings()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SketcherSettings::saveSettings()
|
||||
@@ -141,7 +140,6 @@ SketcherSettingsDisplay::SketcherSettingsDisplay(QWidget* parent)
|
||||
SketcherSettingsDisplay::~SketcherSettingsDisplay()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SketcherSettingsDisplay::saveSettings()
|
||||
@@ -241,7 +239,6 @@ SketcherSettingsColors::SketcherSettingsColors(QWidget* parent)
|
||||
SketcherSettingsColors::~SketcherSettingsColors()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SketcherSettingsColors::saveSettings()
|
||||
|
||||
Reference in New Issue
Block a user