Surface: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-22 08:32:21 +02:00
committed by wwmayer
parent 9c1bc2e0e9
commit fecc939611
13 changed files with 3 additions and 41 deletions

View File

@@ -48,8 +48,6 @@ public:
initialize("This module is the Surface module.");// register with Python
}
~Module() override {}
private:
};

View File

@@ -72,10 +72,6 @@ Extend::Extend() : lockOnChangeMutex(false)
SampleV.setConstraints(&SampleRange);
}
Extend::~Extend()
{
}
short Extend::mustExecute() const
{
if (Face.isTouched())

View File

@@ -37,7 +37,6 @@ class SurfaceExport Extend : public Part::Spline
public:
Extend();
~Extend() override;
App::PropertyLinkSub Face;
App::PropertyFloatConstraint Tolerance;

View File

@@ -46,10 +46,6 @@ Sections::Sections()
NSections.setScope(App::LinkScope::Global);
}
Sections::~Sections()
{
}
App::DocumentObjectExecReturn *Sections::execute()
{
TColGeom_SequenceOfCurve curveSeq;

View File

@@ -37,7 +37,6 @@ class SurfaceExport Sections : public Part::Spline
public:
Sections();
~Sections() override;
App::PropertyLinkSubList NSections;

View File

@@ -50,8 +50,6 @@ public:
initialize("This module is the SurfaceGui module.");// register with Python
}
~Module() override {}
private:
};

View File

@@ -934,11 +934,6 @@ TaskFilling::TaskFilling(ViewProviderFilling* vp, Surface::Filling* obj)
taskbox3->hideGroupBox();
}
TaskFilling::~TaskFilling()
{
// automatically deleted in the sub-class
}
void TaskFilling::setEditedObject(Surface::Filling* obj)
{
widget1->setEditedObject(obj);

View File

@@ -127,7 +127,6 @@ class TaskFilling : public Gui::TaskView::TaskDialog
public:
TaskFilling(ViewProviderFilling* vp, Surface::Filling* obj);
~TaskFilling() override;
void setEditedObject(Surface::Filling* obj);
public:

View File

@@ -636,11 +636,6 @@ TaskGeomFillSurface::TaskGeomFillSurface(ViewProviderGeomFillSurface* vp, Surfac
Content.push_back(taskbox);
}
TaskGeomFillSurface::~TaskGeomFillSurface()
{
// automatically deleted in the sub-class
}
void TaskGeomFillSurface::setEditedObject(Surface::GeomFillSurface* obj)
{
widget->setEditedObject(obj);

View File

@@ -117,7 +117,6 @@ class TaskGeomFillSurface : public Gui::TaskView::TaskDialog
public:
TaskGeomFillSurface(ViewProviderGeomFillSurface* vp, Surface::GeomFillSurface* obj);
~TaskGeomFillSurface() override;
void setEditedObject(Surface::GeomFillSurface* obj);
public:

View File

@@ -276,9 +276,7 @@ SectionsPanel::SectionsPanel(ViewProviderSections* vp, Surface::Sections* obj) :
/*
* Destroys the object and frees any allocated resources
*/
SectionsPanel::~SectionsPanel()
{
}
SectionsPanel::~SectionsPanel() = default;
void SectionsPanel::setupConnections()
{
@@ -590,11 +588,6 @@ TaskSections::TaskSections(ViewProviderSections* vp, Surface::Sections* obj)
Content.push_back(taskbox1);
}
TaskSections::~TaskSections()
{
// automatically deleted in the sub-class
}
void TaskSections::setEditedObject(Surface::Sections* obj)
{
widget1->setEditedObject(obj);

View File

@@ -116,7 +116,6 @@ class TaskSections : public Gui::TaskView::TaskDialog
public:
TaskSections(ViewProviderSections* vp, Surface::Sections* obj);
~TaskSections() override;
void setEditedObject(Surface::Sections* obj);
public:

View File

@@ -34,13 +34,9 @@ using namespace SurfaceGui;
/// @namespace SurfaceGui @class Workbench
TYPESYSTEM_SOURCE(SurfaceGui::Workbench, Gui::StdWorkbench)
Workbench::Workbench()
{
}
Workbench::Workbench() = default;
Workbench::~Workbench()
{
}
Workbench::~Workbench() = default;
Gui::MenuItem *Workbench::setupMenuBar() const
{