Surface: modernize C++: use equals default
This commit is contained in:
@@ -48,8 +48,6 @@ public:
|
||||
initialize("This module is the Surface module.");// register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -72,10 +72,6 @@ Extend::Extend() : lockOnChangeMutex(false)
|
||||
SampleV.setConstraints(&SampleRange);
|
||||
}
|
||||
|
||||
Extend::~Extend()
|
||||
{
|
||||
}
|
||||
|
||||
short Extend::mustExecute() const
|
||||
{
|
||||
if (Face.isTouched())
|
||||
|
||||
@@ -37,7 +37,6 @@ class SurfaceExport Extend : public Part::Spline
|
||||
|
||||
public:
|
||||
Extend();
|
||||
~Extend() override;
|
||||
|
||||
App::PropertyLinkSub Face;
|
||||
App::PropertyFloatConstraint Tolerance;
|
||||
|
||||
@@ -46,10 +46,6 @@ Sections::Sections()
|
||||
NSections.setScope(App::LinkScope::Global);
|
||||
}
|
||||
|
||||
Sections::~Sections()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Sections::execute()
|
||||
{
|
||||
TColGeom_SequenceOfCurve curveSeq;
|
||||
|
||||
@@ -37,7 +37,6 @@ class SurfaceExport Sections : public Part::Spline
|
||||
|
||||
public:
|
||||
Sections();
|
||||
~Sections() override;
|
||||
|
||||
App::PropertyLinkSubList NSections;
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@ public:
|
||||
initialize("This module is the SurfaceGui module.");// register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user