diff --git a/src/Mod/Fem/App/AppFemPy.cpp b/src/Mod/Fem/App/AppFemPy.cpp index 82dd5ebb8a..8cb3ccbd28 100644 --- a/src/Mod/Fem/App/AppFemPy.cpp +++ b/src/Mod/Fem/App/AppFemPy.cpp @@ -75,8 +75,6 @@ public: initialize("This module is the Fem module."); // register with Python } - ~Module() override {} - private: Py::Object invoke_method_varargs(void *method_def, const Py::Tuple &args) override { diff --git a/src/Mod/Fem/App/FemAnalysis.cpp b/src/Mod/Fem/App/FemAnalysis.cpp index c795df19a7..69c081af4f 100644 --- a/src/Mod/Fem/App/FemAnalysis.cpp +++ b/src/Mod/Fem/App/FemAnalysis.cpp @@ -41,9 +41,7 @@ FemAnalysis::FemAnalysis() ADD_PROPERTY_TYPE(Uid, (id), 0, App::Prop_None, "UUID of the Analysis"); } -FemAnalysis::~FemAnalysis() -{ -} +FemAnalysis::~FemAnalysis() = default; void FemAnalysis::handleChangedPropertyName(Base::XMLReader& reader, const char* TypeName, diff --git a/src/Mod/Fem/App/FemConstraint.cpp b/src/Mod/Fem/App/FemConstraint.cpp index df68afac2d..eb9aafd9dd 100644 --- a/src/Mod/Fem/App/FemConstraint.cpp +++ b/src/Mod/Fem/App/FemConstraint.cpp @@ -79,9 +79,7 @@ Constraint::Constraint() References.setScope(App::LinkScope::Global); } -Constraint::~Constraint() -{ -} +Constraint::~Constraint() = default; App::DocumentObjectExecReturn *Constraint::execute() { diff --git a/src/Mod/Fem/App/FemMeshObject.cpp b/src/Mod/Fem/App/FemMeshObject.cpp index 597f9ab398..c106061a03 100644 --- a/src/Mod/Fem/App/FemMeshObject.cpp +++ b/src/Mod/Fem/App/FemMeshObject.cpp @@ -43,9 +43,7 @@ FemMeshObject::FemMeshObject() // https://forum.freecad.org/viewtopic.php?f=18&t=33329#p279203 } -FemMeshObject::~FemMeshObject() -{ -} +FemMeshObject::~FemMeshObject() = default; short FemMeshObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemMeshProperty.cpp b/src/Mod/Fem/App/FemMeshProperty.cpp index 7d82b34674..84b1f41dff 100644 --- a/src/Mod/Fem/App/FemMeshProperty.cpp +++ b/src/Mod/Fem/App/FemMeshProperty.cpp @@ -42,9 +42,7 @@ PropertyFemMesh::PropertyFemMesh() : _FemMesh(new FemMesh) { } -PropertyFemMesh::~PropertyFemMesh() -{ -} +PropertyFemMesh::~PropertyFemMesh() = default; void PropertyFemMesh::setValuePtr(FemMesh* mesh) { diff --git a/src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp b/src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp index c19bf3ba6f..73a7631c85 100644 --- a/src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp +++ b/src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp @@ -62,9 +62,7 @@ FemMeshShapeNetgenObject::FemMeshShapeNetgenObject() } -FemMeshShapeNetgenObject::~FemMeshShapeNetgenObject() -{ -} +FemMeshShapeNetgenObject::~FemMeshShapeNetgenObject() = default; App::DocumentObjectExecReturn *FemMeshShapeNetgenObject::execute() { diff --git a/src/Mod/Fem/App/FemMeshShapeObject.cpp b/src/Mod/Fem/App/FemMeshShapeObject.cpp index 627aab1c51..6d8f98c8a8 100644 --- a/src/Mod/Fem/App/FemMeshShapeObject.cpp +++ b/src/Mod/Fem/App/FemMeshShapeObject.cpp @@ -66,9 +66,7 @@ FemMeshShapeObject::FemMeshShapeObject() "Geometry object, the mesh is made from. The geometry object has to have a Shape."); } -FemMeshShapeObject::~FemMeshShapeObject() -{ -} +FemMeshShapeObject::~FemMeshShapeObject() = default; App::DocumentObjectExecReturn *FemMeshShapeObject::execute() { diff --git a/src/Mod/Fem/App/FemPostFilter.cpp b/src/Mod/Fem/App/FemPostFilter.cpp index b57a286558..ff9fb3c9bd 100644 --- a/src/Mod/Fem/App/FemPostFilter.cpp +++ b/src/Mod/Fem/App/FemPostFilter.cpp @@ -45,8 +45,7 @@ FemPostFilter::FemPostFilter() ADD_PROPERTY(Input,(nullptr)); } -FemPostFilter::~FemPostFilter() -{} +FemPostFilter::~FemPostFilter() = default; void FemPostFilter::addFilterPipeline(const FemPostFilter::FilterPipeline& p, std::string name) { @@ -175,8 +174,7 @@ FemPostDataAlongLineFilter::FemPostDataAlongLineFilter() setActiveFilterPipeline("DataAlongLine"); } -FemPostDataAlongLineFilter::~FemPostDataAlongLineFilter() -{} +FemPostDataAlongLineFilter::~FemPostDataAlongLineFilter() = default; DocumentObjectExecReturn* FemPostDataAlongLineFilter::execute() { @@ -325,8 +323,7 @@ FemPostDataAtPointFilter::FemPostDataAtPointFilter() setActiveFilterPipeline("DataAtPoint"); } -FemPostDataAtPointFilter::~FemPostDataAtPointFilter() -{} +FemPostDataAtPointFilter::~FemPostDataAtPointFilter() = default; DocumentObjectExecReturn* FemPostDataAtPointFilter::execute() { @@ -421,8 +418,7 @@ FemPostClipFilter::FemPostClipFilter() setActiveFilterPipeline("extract"); } -FemPostClipFilter::~FemPostClipFilter() -{} +FemPostClipFilter::~FemPostClipFilter() = default; void FemPostClipFilter::onChanged(const Property* prop) { @@ -497,8 +493,7 @@ FemPostContoursFilter::FemPostContoursFilter() setActiveFilterPipeline("contours"); } -FemPostContoursFilter::~FemPostContoursFilter() -{} +FemPostContoursFilter::~FemPostContoursFilter() = default; DocumentObjectExecReturn* FemPostContoursFilter::execute() { @@ -744,8 +739,7 @@ FemPostCutFilter::FemPostCutFilter() setActiveFilterPipeline("cut"); } -FemPostCutFilter::~FemPostCutFilter() -{} +FemPostCutFilter::~FemPostCutFilter() = default; void FemPostCutFilter::onChanged(const Property* prop) { @@ -798,9 +792,7 @@ FemPostScalarClipFilter::FemPostScalarClipFilter() : FemPostFilter() { setActiveFilterPipeline("clip"); } -FemPostScalarClipFilter::~FemPostScalarClipFilter() { - -} +FemPostScalarClipFilter::~FemPostScalarClipFilter() = default; DocumentObjectExecReturn* FemPostScalarClipFilter::execute() { @@ -906,8 +898,7 @@ FemPostWarpVectorFilter::FemPostWarpVectorFilter() : FemPostFilter() setActiveFilterPipeline("warp"); } -FemPostWarpVectorFilter::~FemPostWarpVectorFilter() -{} +FemPostWarpVectorFilter::~FemPostWarpVectorFilter() = default; DocumentObjectExecReturn* FemPostWarpVectorFilter::execute() { diff --git a/src/Mod/Fem/App/FemPostFunction.cpp b/src/Mod/Fem/App/FemPostFunction.cpp index 4d36f4b97a..5330c738c2 100644 --- a/src/Mod/Fem/App/FemPostFunction.cpp +++ b/src/Mod/Fem/App/FemPostFunction.cpp @@ -35,9 +35,7 @@ FemPostFunctionProvider::FemPostFunctionProvider() : DocumentObject() { ADD_PROPERTY(Functions, (nullptr)); } -FemPostFunctionProvider::~FemPostFunctionProvider() { - -} +FemPostFunctionProvider::~FemPostFunctionProvider() = default; void FemPostFunctionProvider::onChanged(const Property* prop) { App::DocumentObject::onChanged(prop); @@ -46,13 +44,9 @@ void FemPostFunctionProvider::onChanged(const Property* prop) { PROPERTY_SOURCE(Fem::FemPostFunction, App::DocumentObject) -FemPostFunction::FemPostFunction() -{ -} +FemPostFunction::FemPostFunction() = default; -FemPostFunction::~FemPostFunction() -{ -} +FemPostFunction::~FemPostFunction() = default; DocumentObjectExecReturn* FemPostFunction::execute() { @@ -77,9 +71,7 @@ FemPostBoxFunction::FemPostBoxFunction() m_box->SetBounds(-5.0, 5.0, -5.0, 5.0, -5.0, 5.0); } -FemPostBoxFunction::~FemPostBoxFunction() -{ -} +FemPostBoxFunction::~FemPostBoxFunction() = default; void FemPostBoxFunction::onChanged(const Property* prop) { @@ -123,9 +115,7 @@ FemPostCylinderFunction::FemPostCylinderFunction() m_cylinder->SetRadius(5.0); } -FemPostCylinderFunction::~FemPostCylinderFunction() -{ -} +FemPostCylinderFunction::~FemPostCylinderFunction() = default; void FemPostCylinderFunction::onChanged(const Property* prop) { @@ -167,9 +157,7 @@ FemPostPlaneFunction::FemPostPlaneFunction() : FemPostFunction() { m_plane->SetNormal(0.0, 0.0, 1.0); } -FemPostPlaneFunction::~FemPostPlaneFunction() { - -} +FemPostPlaneFunction::~FemPostPlaneFunction() = default; void FemPostPlaneFunction::onChanged(const Property* prop) { @@ -207,9 +195,7 @@ FemPostSphereFunction::FemPostSphereFunction() : FemPostFunction() { m_sphere->SetRadius(5.0); } -FemPostSphereFunction::~FemPostSphereFunction() { - -} +FemPostSphereFunction::~FemPostSphereFunction() = default; void FemPostSphereFunction::onChanged(const Property* prop) { diff --git a/src/Mod/Fem/App/FemPostObject.cpp b/src/Mod/Fem/App/FemPostObject.cpp index 3ad500a685..3be1a3f154 100644 --- a/src/Mod/Fem/App/FemPostObject.cpp +++ b/src/Mod/Fem/App/FemPostObject.cpp @@ -40,9 +40,7 @@ FemPostObject::FemPostObject() ADD_PROPERTY(Data, (nullptr)); } -FemPostObject::~FemPostObject() -{ -} +FemPostObject::~FemPostObject() = default; vtkBoundingBox FemPostObject::getBoundingBox() { diff --git a/src/Mod/Fem/App/FemPostPipeline.cpp b/src/Mod/Fem/App/FemPostPipeline.cpp index 0921df2e2d..16e1d43423 100644 --- a/src/Mod/Fem/App/FemPostPipeline.cpp +++ b/src/Mod/Fem/App/FemPostPipeline.cpp @@ -73,9 +73,7 @@ FemPostPipeline::FemPostPipeline() Mode.setEnums(ModeEnums); } -FemPostPipeline::~FemPostPipeline() -{ -} +FemPostPipeline::~FemPostPipeline() = default; short FemPostPipeline::mustExecute() const { diff --git a/src/Mod/Fem/App/FemResultObject.cpp b/src/Mod/Fem/App/FemResultObject.cpp index 1347507831..d7e8fc676f 100644 --- a/src/Mod/Fem/App/FemResultObject.cpp +++ b/src/Mod/Fem/App/FemResultObject.cpp @@ -47,9 +47,7 @@ FemResultObject::FemResultObject() Time.setStatus(App::Property::ReadOnly, true); } -FemResultObject::~FemResultObject() -{ -} +FemResultObject::~FemResultObject() = default; short FemResultObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSetElementsObject.cpp b/src/Mod/Fem/App/FemSetElementsObject.cpp index 1657764e87..08bf489f28 100644 --- a/src/Mod/Fem/App/FemSetElementsObject.cpp +++ b/src/Mod/Fem/App/FemSetElementsObject.cpp @@ -33,13 +33,9 @@ using namespace App; PROPERTY_SOURCE(Fem::FemSetElementsObject, Fem::FemSetObject) -FemSetElementsObject::FemSetElementsObject() -{ -} +FemSetElementsObject::FemSetElementsObject() = default; -FemSetElementsObject::~FemSetElementsObject() -{ -} +FemSetElementsObject::~FemSetElementsObject() = default; short FemSetElementsObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSetFacesObject.cpp b/src/Mod/Fem/App/FemSetFacesObject.cpp index 18af33b2fd..4aca555e60 100644 --- a/src/Mod/Fem/App/FemSetFacesObject.cpp +++ b/src/Mod/Fem/App/FemSetFacesObject.cpp @@ -33,13 +33,9 @@ using namespace App; PROPERTY_SOURCE(Fem::FemSetFacesObject, Fem::FemSetObject) -FemSetFacesObject::FemSetFacesObject() -{ -} +FemSetFacesObject::FemSetFacesObject() = default; -FemSetFacesObject::~FemSetFacesObject() -{ -} +FemSetFacesObject::~FemSetFacesObject() = default; short FemSetFacesObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSetGeometryObject.cpp b/src/Mod/Fem/App/FemSetGeometryObject.cpp index 1f955379f2..57044225c7 100644 --- a/src/Mod/Fem/App/FemSetGeometryObject.cpp +++ b/src/Mod/Fem/App/FemSetGeometryObject.cpp @@ -32,13 +32,9 @@ using namespace App; PROPERTY_SOURCE(Fem::FemSetGeometryObject, Fem::FemSetObject) -FemSetGeometryObject::FemSetGeometryObject() -{ -} +FemSetGeometryObject::FemSetGeometryObject() = default; -FemSetGeometryObject::~FemSetGeometryObject() -{ -} +FemSetGeometryObject::~FemSetGeometryObject() = default; short FemSetGeometryObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSetNodesObject.cpp b/src/Mod/Fem/App/FemSetNodesObject.cpp index 392ba33a76..0554831fa4 100644 --- a/src/Mod/Fem/App/FemSetNodesObject.cpp +++ b/src/Mod/Fem/App/FemSetNodesObject.cpp @@ -38,9 +38,7 @@ FemSetNodesObject::FemSetNodesObject() ADD_PROPERTY_TYPE(Nodes,(), "Node indexes",Prop_None,"Nodes belonging to the NodesSet"); } -FemSetNodesObject::~FemSetNodesObject() -{ -} +FemSetNodesObject::~FemSetNodesObject() = default; short FemSetNodesObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSetObject.cpp b/src/Mod/Fem/App/FemSetObject.cpp index b5536e9a6b..3cdcb59f7b 100644 --- a/src/Mod/Fem/App/FemSetObject.cpp +++ b/src/Mod/Fem/App/FemSetObject.cpp @@ -37,9 +37,7 @@ FemSetObject::FemSetObject() ADD_PROPERTY_TYPE(FemMesh,(nullptr), "MeshSet link",Prop_None,"MeshSet the set belongs to"); } -FemSetObject::~FemSetObject() -{ -} +FemSetObject::~FemSetObject() = default; short FemSetObject::mustExecute() const { diff --git a/src/Mod/Fem/App/FemSolverObject.cpp b/src/Mod/Fem/App/FemSolverObject.cpp index 3c15824615..7ca43ff8f1 100644 --- a/src/Mod/Fem/App/FemSolverObject.cpp +++ b/src/Mod/Fem/App/FemSolverObject.cpp @@ -35,14 +35,9 @@ using namespace App; PROPERTY_SOURCE(Fem::FemSolverObject, App::DocumentObject) -FemSolverObject::FemSolverObject() -{ - // Attributes are implemented in the FemSolverObjectPython -} +FemSolverObject::FemSolverObject() = default; -FemSolverObject::~FemSolverObject() -{ -} +FemSolverObject::~FemSolverObject() = default; short FemSolverObject::mustExecute() const { diff --git a/src/Mod/Fem/App/HypothesisPy.cpp b/src/Mod/Fem/App/HypothesisPy.cpp index ed0a9d0e6e..45d54f2b9c 100755 --- a/src/Mod/Fem/App/HypothesisPy.cpp +++ b/src/Mod/Fem/App/HypothesisPy.cpp @@ -78,9 +78,7 @@ HypothesisPy::HypothesisPy(std::shared_ptr h) { } -HypothesisPy::~HypothesisPy() -{ -} +HypothesisPy::~HypothesisPy() = default; // --------------------------------------------------------------------------- @@ -114,9 +112,7 @@ SMESH_HypothesisPy::SMESH_HypothesisPy(SMESH_Hypothesis* h) : hyp(h) } template -SMESH_HypothesisPy::~SMESH_HypothesisPy() -{ -} +SMESH_HypothesisPy::~SMESH_HypothesisPy() = default; template Py::Object SMESH_HypothesisPy::getattr(const char *name) @@ -256,9 +252,7 @@ StdMeshers_Arithmetic1DPy::StdMeshers_Arithmetic1DPy(int hypId, int studyId, SME } #endif -StdMeshers_Arithmetic1DPy::~StdMeshers_Arithmetic1DPy() -{ -} +StdMeshers_Arithmetic1DPy::~StdMeshers_Arithmetic1DPy() = default; Py::Object StdMeshers_Arithmetic1DPy::setLength(const Py::Tuple& args) { @@ -301,9 +295,7 @@ StdMeshers_AutomaticLengthPy::StdMeshers_AutomaticLengthPy(int /*hypId*/, int /* } #endif -StdMeshers_AutomaticLengthPy::~StdMeshers_AutomaticLengthPy() -{ -} +StdMeshers_AutomaticLengthPy::~StdMeshers_AutomaticLengthPy() = default; Py::Object StdMeshers_AutomaticLengthPy::setFineness(const Py::Tuple& args) { @@ -370,9 +362,7 @@ StdMeshers_NotConformAllowedPy::StdMeshers_NotConformAllowedPy(int hypId, int st } #endif -StdMeshers_NotConformAllowedPy::~StdMeshers_NotConformAllowedPy() -{ -} +StdMeshers_NotConformAllowedPy::~StdMeshers_NotConformAllowedPy() = default; // --------------------------------------------------------------------------- @@ -403,9 +393,7 @@ StdMeshers_MaxLengthPy::StdMeshers_MaxLengthPy(int hypId, int studyId, SMESH_Gen } #endif -StdMeshers_MaxLengthPy::~StdMeshers_MaxLengthPy() -{ -} +StdMeshers_MaxLengthPy::~StdMeshers_MaxLengthPy() = default; Py::Object StdMeshers_MaxLengthPy::setLength(const Py::Tuple& args) { @@ -479,9 +467,7 @@ StdMeshers_LocalLengthPy::StdMeshers_LocalLengthPy(int hypId, int studyId, SMESH } #endif -StdMeshers_LocalLengthPy::~StdMeshers_LocalLengthPy() -{ -} +StdMeshers_LocalLengthPy::~StdMeshers_LocalLengthPy() = default; Py::Object StdMeshers_LocalLengthPy::setLength(const Py::Tuple& args) { @@ -533,9 +519,7 @@ StdMeshers_MaxElementAreaPy::StdMeshers_MaxElementAreaPy(int hypId, int studyId, } #endif -StdMeshers_MaxElementAreaPy::~StdMeshers_MaxElementAreaPy() -{ -} +StdMeshers_MaxElementAreaPy::~StdMeshers_MaxElementAreaPy() = default; Py::Object StdMeshers_MaxElementAreaPy::setMaxArea(const Py::Tuple& args) { @@ -571,9 +555,7 @@ StdMeshers_QuadranglePreferencePy::StdMeshers_QuadranglePreferencePy(int hypId, } #endif -StdMeshers_QuadranglePreferencePy::~StdMeshers_QuadranglePreferencePy() -{ -} +StdMeshers_QuadranglePreferencePy::~StdMeshers_QuadranglePreferencePy() = default; // --------------------------------------------------------------------------- @@ -596,9 +578,7 @@ StdMeshers_Quadrangle_2DPy::StdMeshers_Quadrangle_2DPy(int hypId, int studyId, S } #endif -StdMeshers_Quadrangle_2DPy::~StdMeshers_Quadrangle_2DPy() -{ -} +StdMeshers_Quadrangle_2DPy::~StdMeshers_Quadrangle_2DPy() = default; // --------------------------------------------------------------------------- @@ -621,9 +601,7 @@ StdMeshers_Regular_1DPy::StdMeshers_Regular_1DPy(int hypId, int studyId, SMESH_G } #endif -StdMeshers_Regular_1DPy::~StdMeshers_Regular_1DPy() -{ -} +StdMeshers_Regular_1DPy::~StdMeshers_Regular_1DPy() = default; // --------------------------------------------------------------------------- @@ -646,9 +624,7 @@ StdMeshers_UseExisting_1DPy::StdMeshers_UseExisting_1DPy(int hypId, int studyId, } #endif -StdMeshers_UseExisting_1DPy::~StdMeshers_UseExisting_1DPy() -{ -} +StdMeshers_UseExisting_1DPy::~StdMeshers_UseExisting_1DPy() = default; // --------------------------------------------------------------------------- @@ -671,9 +647,7 @@ StdMeshers_UseExisting_2DPy::StdMeshers_UseExisting_2DPy(int hypId, int studyId, } #endif -StdMeshers_UseExisting_2DPy::~StdMeshers_UseExisting_2DPy() -{ -} +StdMeshers_UseExisting_2DPy::~StdMeshers_UseExisting_2DPy() = default; // --------------------------------------------------------------------------- @@ -696,9 +670,7 @@ StdMeshers_CompositeSegment_1DPy::StdMeshers_CompositeSegment_1DPy(int hypId, in } #endif -StdMeshers_CompositeSegment_1DPy::~StdMeshers_CompositeSegment_1DPy() -{ -} +StdMeshers_CompositeSegment_1DPy::~StdMeshers_CompositeSegment_1DPy() = default; // --------------------------------------------------------------------------- @@ -723,9 +695,7 @@ StdMeshers_Deflection1DPy::StdMeshers_Deflection1DPy(int hypId, int studyId, SME } #endif -StdMeshers_Deflection1DPy::~StdMeshers_Deflection1DPy() -{ -} +StdMeshers_Deflection1DPy::~StdMeshers_Deflection1DPy() = default; Py::Object StdMeshers_Deflection1DPy::setDeflection(const Py::Tuple& args) { @@ -755,9 +725,7 @@ StdMeshers_Hexa_3DPy::StdMeshers_Hexa_3DPy(int hypId, int studyId, SMESH_Gen* ge } #endif -StdMeshers_Hexa_3DPy::~StdMeshers_Hexa_3DPy() -{ -} +StdMeshers_Hexa_3DPy::~StdMeshers_Hexa_3DPy() = default; // --------------------------------------------------------------------------- @@ -774,9 +742,7 @@ StdMeshers_TrianglePreferencePy::StdMeshers_TrianglePreferencePy(int hypId, int { } -StdMeshers_TrianglePreferencePy::~StdMeshers_TrianglePreferencePy() -{ -} +StdMeshers_TrianglePreferencePy::~StdMeshers_TrianglePreferencePy() = default; #endif // -------------------------------------------------------------------- // --------------------------------------------------------------------------- @@ -802,9 +768,7 @@ StdMeshers_StartEndLengthPy::StdMeshers_StartEndLengthPy(int hypId, int studyId, } #endif -StdMeshers_StartEndLengthPy::~StdMeshers_StartEndLengthPy() -{ -} +StdMeshers_StartEndLengthPy::~StdMeshers_StartEndLengthPy() = default; Py::Object StdMeshers_StartEndLengthPy::setLength(const Py::Tuple& args) { @@ -840,9 +804,7 @@ StdMeshers_SegmentLengthAroundVertexPy::StdMeshers_SegmentLengthAroundVertexPy(i } #endif -StdMeshers_SegmentLengthAroundVertexPy::~StdMeshers_SegmentLengthAroundVertexPy() -{ -} +StdMeshers_SegmentLengthAroundVertexPy::~StdMeshers_SegmentLengthAroundVertexPy() = default; Py::Object StdMeshers_SegmentLengthAroundVertexPy::setLength(const Py::Tuple& args) { @@ -878,9 +840,7 @@ StdMeshers_SegmentAroundVertex_0DPy::StdMeshers_SegmentAroundVertex_0DPy(int hyp } #endif -StdMeshers_SegmentAroundVertex_0DPy::~StdMeshers_SegmentAroundVertex_0DPy() -{ -} +StdMeshers_SegmentAroundVertex_0DPy::~StdMeshers_SegmentAroundVertex_0DPy() = default; // --------------------------------------------------------------------------- @@ -903,9 +863,7 @@ StdMeshers_RadialPrism_3DPy::StdMeshers_RadialPrism_3DPy(int hypId, int studyId, } #endif -StdMeshers_RadialPrism_3DPy::~StdMeshers_RadialPrism_3DPy() -{ -} +StdMeshers_RadialPrism_3DPy::~StdMeshers_RadialPrism_3DPy() = default; // --------------------------------------------------------------------------- @@ -928,9 +886,7 @@ StdMeshers_QuadraticMeshPy::StdMeshers_QuadraticMeshPy(int hypId, int studyId, S } #endif -StdMeshers_QuadraticMeshPy::~StdMeshers_QuadraticMeshPy() -{ -} +StdMeshers_QuadraticMeshPy::~StdMeshers_QuadraticMeshPy() = default; // --------------------------------------------------------------------------- @@ -953,9 +909,7 @@ StdMeshers_ProjectionSource3DPy::StdMeshers_ProjectionSource3DPy(int hypId, int } #endif -StdMeshers_ProjectionSource3DPy::~StdMeshers_ProjectionSource3DPy() -{ -} +StdMeshers_ProjectionSource3DPy::~StdMeshers_ProjectionSource3DPy() = default; // --------------------------------------------------------------------------- @@ -978,9 +932,7 @@ StdMeshers_ProjectionSource2DPy::StdMeshers_ProjectionSource2DPy(int hypId, int } #endif -StdMeshers_ProjectionSource2DPy::~StdMeshers_ProjectionSource2DPy() -{ -} +StdMeshers_ProjectionSource2DPy::~StdMeshers_ProjectionSource2DPy() = default; // --------------------------------------------------------------------------- @@ -1003,9 +955,7 @@ StdMeshers_ProjectionSource1DPy::StdMeshers_ProjectionSource1DPy(int hypId, int } #endif -StdMeshers_ProjectionSource1DPy::~StdMeshers_ProjectionSource1DPy() -{ -} +StdMeshers_ProjectionSource1DPy::~StdMeshers_ProjectionSource1DPy() = default; // --------------------------------------------------------------------------- @@ -1028,9 +978,7 @@ StdMeshers_Projection_3DPy::StdMeshers_Projection_3DPy(int hypId, int studyId, S } #endif -StdMeshers_Projection_3DPy::~StdMeshers_Projection_3DPy() -{ -} +StdMeshers_Projection_3DPy::~StdMeshers_Projection_3DPy() = default; // --------------------------------------------------------------------------- @@ -1053,9 +1001,7 @@ StdMeshers_Projection_2DPy::StdMeshers_Projection_2DPy(int hypId, int studyId, S } #endif -StdMeshers_Projection_2DPy::~StdMeshers_Projection_2DPy() -{ -} +StdMeshers_Projection_2DPy::~StdMeshers_Projection_2DPy() = default; // --------------------------------------------------------------------------- @@ -1078,9 +1024,7 @@ StdMeshers_Projection_1DPy::StdMeshers_Projection_1DPy(int hypId, int studyId, S } #endif -StdMeshers_Projection_1DPy::~StdMeshers_Projection_1DPy() -{ -} +StdMeshers_Projection_1DPy::~StdMeshers_Projection_1DPy() = default; // --------------------------------------------------------------------------- @@ -1103,9 +1047,7 @@ StdMeshers_Prism_3DPy::StdMeshers_Prism_3DPy(int hypId, int studyId, SMESH_Gen* } #endif -StdMeshers_Prism_3DPy::~StdMeshers_Prism_3DPy() -{ -} +StdMeshers_Prism_3DPy::~StdMeshers_Prism_3DPy() = default; // --------------------------------------------------------------------------- @@ -1130,9 +1072,7 @@ StdMeshers_NumberOfSegmentsPy::StdMeshers_NumberOfSegmentsPy(int hypId, int stud } #endif -StdMeshers_NumberOfSegmentsPy::~StdMeshers_NumberOfSegmentsPy() -{ -} +StdMeshers_NumberOfSegmentsPy::~StdMeshers_NumberOfSegmentsPy() = default; Py::Object StdMeshers_NumberOfSegmentsPy::setNumSegm(const Py::Tuple& args) { @@ -1170,9 +1110,7 @@ StdMeshers_NumberOfLayersPy::StdMeshers_NumberOfLayersPy(int hypId, int studyId, } #endif -StdMeshers_NumberOfLayersPy::~StdMeshers_NumberOfLayersPy() -{ -} +StdMeshers_NumberOfLayersPy::~StdMeshers_NumberOfLayersPy() = default; Py::Object StdMeshers_NumberOfLayersPy::setNumLayers(const Py::Tuple& args) { @@ -1208,9 +1146,7 @@ StdMeshers_MEFISTO_2DPy::StdMeshers_MEFISTO_2DPy(int hypId, int studyId, SMESH_G } #endif -StdMeshers_MEFISTO_2DPy::~StdMeshers_MEFISTO_2DPy() -{ -} +StdMeshers_MEFISTO_2DPy::~StdMeshers_MEFISTO_2DPy() = default; // --------------------------------------------------------------------------- @@ -1235,9 +1171,7 @@ StdMeshers_MaxElementVolumePy::StdMeshers_MaxElementVolumePy(int hypId, int stud } #endif -StdMeshers_MaxElementVolumePy::~StdMeshers_MaxElementVolumePy() -{ -} +StdMeshers_MaxElementVolumePy::~StdMeshers_MaxElementVolumePy() = default; Py::Object StdMeshers_MaxElementVolumePy::setMaxVolume(const Py::Tuple& args) { @@ -1275,9 +1209,7 @@ StdMeshers_LengthFromEdgesPy::StdMeshers_LengthFromEdgesPy(int hypId, int studyI } #endif -StdMeshers_LengthFromEdgesPy::~StdMeshers_LengthFromEdgesPy() -{ -} +StdMeshers_LengthFromEdgesPy::~StdMeshers_LengthFromEdgesPy() = default; Py::Object StdMeshers_LengthFromEdgesPy::setMode(const Py::Tuple& args) { @@ -1319,9 +1251,7 @@ StdMeshers_LayerDistributionPy::StdMeshers_LayerDistributionPy(int hypId, int st } #endif -StdMeshers_LayerDistributionPy::~StdMeshers_LayerDistributionPy() -{ -} +StdMeshers_LayerDistributionPy::~StdMeshers_LayerDistributionPy() = default; Py::Object StdMeshers_LayerDistributionPy::setLayerDistribution(const Py::Tuple& args) { diff --git a/src/Mod/Fem/App/PropertyPostDataObject.cpp b/src/Mod/Fem/App/PropertyPostDataObject.cpp index c69446fceb..42ea5b06a2 100644 --- a/src/Mod/Fem/App/PropertyPostDataObject.cpp +++ b/src/Mod/Fem/App/PropertyPostDataObject.cpp @@ -56,13 +56,9 @@ using namespace Fem; TYPESYSTEM_SOURCE(Fem::PropertyPostDataObject , App::Property) -PropertyPostDataObject::PropertyPostDataObject() -{ -} +PropertyPostDataObject::PropertyPostDataObject() = default; -PropertyPostDataObject::~PropertyPostDataObject() -{ -} +PropertyPostDataObject::~PropertyPostDataObject() = default; void PropertyPostDataObject::scaleDataObject(vtkDataObject *dataObject, double s) { diff --git a/src/Mod/Fem/Gui/AbaqusHighlighter.cpp b/src/Mod/Fem/Gui/AbaqusHighlighter.cpp index bd7a6ed08a..159dbbf68a 100644 --- a/src/Mod/Fem/Gui/AbaqusHighlighter.cpp +++ b/src/Mod/Fem/Gui/AbaqusHighlighter.cpp @@ -39,9 +39,7 @@ AbaqusHighlighter::AbaqusHighlighter(QObject* parent) } /** Destroys this object. */ -AbaqusHighlighter::~AbaqusHighlighter() -{ -} +AbaqusHighlighter::~AbaqusHighlighter() = default; void AbaqusHighlighter::highlightBlock(const QString& text) { diff --git a/src/Mod/Fem/Gui/ActiveAnalysisObserver.cpp b/src/Mod/Fem/Gui/ActiveAnalysisObserver.cpp index 8753994762..9c5b51852b 100644 --- a/src/Mod/Fem/Gui/ActiveAnalysisObserver.cpp +++ b/src/Mod/Fem/Gui/ActiveAnalysisObserver.cpp @@ -46,9 +46,7 @@ ActiveAnalysisObserver::ActiveAnalysisObserver() { } -ActiveAnalysisObserver::~ActiveAnalysisObserver() -{ -} +ActiveAnalysisObserver::~ActiveAnalysisObserver() = default; void ActiveAnalysisObserver::setActiveObject(Fem::FemAnalysis* fem) { diff --git a/src/Mod/Fem/Gui/AppFemGuiPy.cpp b/src/Mod/Fem/Gui/AppFemGuiPy.cpp index e7ce6212c4..4f0382a446 100755 --- a/src/Mod/Fem/Gui/AppFemGuiPy.cpp +++ b/src/Mod/Fem/Gui/AppFemGuiPy.cpp @@ -58,8 +58,6 @@ public: initialize("This module is the FemGui module."); // register with Python } - ~Module() override {} - private: Py::Object invoke_method_varargs(void* method_def, const Py::Tuple& args) override { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemCcxImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemCcxImp.cpp index 993e973bb0..4db1e0d727 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemCcxImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemCcxImp.cpp @@ -53,10 +53,7 @@ DlgSettingsFemCcxImp::DlgSettingsFemCcxImp(QWidget* parent) this, &DlgSettingsFemCcxImp::onfileNameChanged); } -DlgSettingsFemCcxImp::~DlgSettingsFemCcxImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemCcxImp::~DlgSettingsFemCcxImp() = default; void DlgSettingsFemCcxImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemElmerImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemElmerImp.cpp index 20126e56b2..0eca7982bb 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemElmerImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemElmerImp.cpp @@ -54,10 +54,7 @@ DlgSettingsFemElmerImp::DlgSettingsFemElmerImp(QWidget* parent) this, &DlgSettingsFemElmerImp::onCoresValueChanged); } -DlgSettingsFemElmerImp::~DlgSettingsFemElmerImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemElmerImp::~DlgSettingsFemElmerImp() = default; void DlgSettingsFemElmerImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemExportAbaqusImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemExportAbaqusImp.cpp index 68c7b7fd3b..56f549faad 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemExportAbaqusImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemExportAbaqusImp.cpp @@ -42,8 +42,7 @@ DlgSettingsFemExportAbaqusImp::DlgSettingsFemExportAbaqusImp(QWidget* parent) /* * Destroys the object and frees any allocated resources */ -DlgSettingsFemExportAbaqusImp::~DlgSettingsFemExportAbaqusImp() -{} +DlgSettingsFemExportAbaqusImp::~DlgSettingsFemExportAbaqusImp() = default; void DlgSettingsFemExportAbaqusImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemGeneralImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemGeneralImp.cpp index 4c647f772b..0aa8b80c33 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemGeneralImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemGeneralImp.cpp @@ -70,10 +70,7 @@ DlgSettingsFemGeneralImp::DlgSettingsFemGeneralImp(QWidget* parent) ui->cmb_def_solver->setCurrentIndex(1); } -DlgSettingsFemGeneralImp::~DlgSettingsFemGeneralImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemGeneralImp::~DlgSettingsFemGeneralImp() = default; void DlgSettingsFemGeneralImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemGmshImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemGmshImp.cpp index 6d1881bc2b..a22faac6bb 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemGmshImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemGmshImp.cpp @@ -43,10 +43,7 @@ DlgSettingsFemGmshImp::DlgSettingsFemGmshImp(QWidget* parent) this, &DlgSettingsFemGmshImp::onfileNameChanged); } -DlgSettingsFemGmshImp::~DlgSettingsFemGmshImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemGmshImp::~DlgSettingsFemGmshImp() = default; void DlgSettingsFemGmshImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemInOutVtkImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemInOutVtkImp.cpp index 12032912cf..9c4ee914a5 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemInOutVtkImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemInOutVtkImp.cpp @@ -42,8 +42,7 @@ DlgSettingsFemInOutVtkImp::DlgSettingsFemInOutVtkImp(QWidget* parent) /* * Destroys the object and frees any allocated resources */ -DlgSettingsFemInOutVtkImp::~DlgSettingsFemInOutVtkImp() -{} +DlgSettingsFemInOutVtkImp::~DlgSettingsFemInOutVtkImp() = default; void DlgSettingsFemInOutVtkImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemMaterialImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemMaterialImp.cpp index 8780ce31a4..9451f8ea01 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemMaterialImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemMaterialImp.cpp @@ -37,10 +37,7 @@ DlgSettingsFemMaterialImp::DlgSettingsFemMaterialImp(QWidget* parent) ui->setupUi(this); } -DlgSettingsFemMaterialImp::~DlgSettingsFemMaterialImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemMaterialImp::~DlgSettingsFemMaterialImp() = default; void DlgSettingsFemMaterialImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemMystranImp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemMystranImp.cpp index 2884725e56..0d8ec13ae4 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemMystranImp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemMystranImp.cpp @@ -43,10 +43,7 @@ DlgSettingsFemMystranImp::DlgSettingsFemMystranImp(QWidget* parent) this, &DlgSettingsFemMystranImp::onfileNameChanged); } -DlgSettingsFemMystranImp::~DlgSettingsFemMystranImp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemMystranImp::~DlgSettingsFemMystranImp() = default; void DlgSettingsFemMystranImp::saveSettings() { diff --git a/src/Mod/Fem/Gui/DlgSettingsFemZ88Imp.cpp b/src/Mod/Fem/Gui/DlgSettingsFemZ88Imp.cpp index e86115f9a1..c16f8bfcac 100644 --- a/src/Mod/Fem/Gui/DlgSettingsFemZ88Imp.cpp +++ b/src/Mod/Fem/Gui/DlgSettingsFemZ88Imp.cpp @@ -45,10 +45,7 @@ DlgSettingsFemZ88Imp::DlgSettingsFemZ88Imp(QWidget* parent) this, &DlgSettingsFemZ88Imp::onfileNameChanged); } -DlgSettingsFemZ88Imp::~DlgSettingsFemZ88Imp() -{ - // no need to delete child widgets, Qt does it all for us -} +DlgSettingsFemZ88Imp::~DlgSettingsFemZ88Imp() = default; void DlgSettingsFemZ88Imp::saveSettings() { diff --git a/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp b/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp index 5f6aaa0e5a..e5a8260965 100644 --- a/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp +++ b/src/Mod/Fem/Gui/TaskAnalysisInfo.cpp @@ -44,7 +44,6 @@ TaskAnalysisInfo::TaskAnalysisInfo(Fem::FemAnalysis* pcObject, QWidget* parent) this->groupLayout()->addWidget(proxy); } -TaskAnalysisInfo::~TaskAnalysisInfo() -{} +TaskAnalysisInfo::~TaskAnalysisInfo() = default; #include "moc_TaskAnalysisInfo.cpp" diff --git a/src/Mod/Fem/Gui/TaskDlgAnalysis.cpp b/src/Mod/Fem/Gui/TaskDlgAnalysis.cpp index 7787db39c3..351f14dcda 100644 --- a/src/Mod/Fem/Gui/TaskDlgAnalysis.cpp +++ b/src/Mod/Fem/Gui/TaskDlgAnalysis.cpp @@ -51,10 +51,7 @@ TaskDlgAnalysis::TaskDlgAnalysis(Fem::FemAnalysis* obj) Content.push_back(info); } -TaskDlgAnalysis::~TaskDlgAnalysis() -{ - -} +TaskDlgAnalysis::~TaskDlgAnalysis() = default; //==== calls from the TaskView =============================================================== diff --git a/src/Mod/Fem/Gui/TaskDlgCreateNodeSet.cpp b/src/Mod/Fem/Gui/TaskDlgCreateNodeSet.cpp index 9e32a5dfbd..382a48a32e 100644 --- a/src/Mod/Fem/Gui/TaskDlgCreateNodeSet.cpp +++ b/src/Mod/Fem/Gui/TaskDlgCreateNodeSet.cpp @@ -50,10 +50,7 @@ TaskDlgCreateNodeSet::TaskDlgCreateNodeSet(Fem::FemSetNodesObject* obj) Content.push_back(param); } -TaskDlgCreateNodeSet::~TaskDlgCreateNodeSet() -{ - -} +TaskDlgCreateNodeSet::~TaskDlgCreateNodeSet() = default; //==== calls from the TaskView =============================================================== diff --git a/src/Mod/Fem/Gui/TaskDlgMeshShapeNetgen.cpp b/src/Mod/Fem/Gui/TaskDlgMeshShapeNetgen.cpp index 50582bc629..f0a0046078 100644 --- a/src/Mod/Fem/Gui/TaskDlgMeshShapeNetgen.cpp +++ b/src/Mod/Fem/Gui/TaskDlgMeshShapeNetgen.cpp @@ -57,10 +57,7 @@ TaskDlgMeshShapeNetgen::TaskDlgMeshShapeNetgen(FemGui::ViewProviderFemMeshShapeN } } -TaskDlgMeshShapeNetgen::~TaskDlgMeshShapeNetgen() -{ - -} +TaskDlgMeshShapeNetgen::~TaskDlgMeshShapeNetgen() = default; //==== calls from the TaskView =============================================================== diff --git a/src/Mod/Fem/Gui/TaskDriver.cpp b/src/Mod/Fem/Gui/TaskDriver.cpp index 32cd7fb338..eed9c8ef52 100644 --- a/src/Mod/Fem/Gui/TaskDriver.cpp +++ b/src/Mod/Fem/Gui/TaskDriver.cpp @@ -44,7 +44,6 @@ TaskDriver::TaskDriver(Fem::FemAnalysis* pcObject, QWidget* parent) this->groupLayout()->addWidget(proxy); } -TaskDriver::~TaskDriver() -{} +TaskDriver::~TaskDriver() = default; #include "moc_TaskDriver.cpp" diff --git a/src/Mod/Fem/Gui/TaskFemConstraint.h b/src/Mod/Fem/Gui/TaskFemConstraint.h index 78c51a5bec..a3e9064b82 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraint.h +++ b/src/Mod/Fem/Gui/TaskFemConstraint.h @@ -45,7 +45,7 @@ class TaskFemConstraint : public Gui::TaskView::TaskBox, public Gui::SelectionOb public: explicit TaskFemConstraint(ViewProviderFemConstraint *ConstraintView,QWidget *parent = nullptr,const char* pixmapname = ""); - ~TaskFemConstraint() override {} + ~TaskFemConstraint() override = default; virtual const std::string getReferences() const {return std::string();} const std::string getReferences(const std::vector& items) const; diff --git a/src/Mod/Fem/Gui/TaskFemConstraintBearing.cpp b/src/Mod/Fem/Gui/TaskFemConstraintBearing.cpp index 659766555f..114f2e8c5d 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintBearing.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintBearing.cpp @@ -287,8 +287,7 @@ bool TaskFemConstraintBearing::getAxial() const return ui->checkAxial->isChecked(); } -TaskFemConstraintBearing::~TaskFemConstraintBearing() -{} +TaskFemConstraintBearing::~TaskFemConstraintBearing() = default; bool TaskFemConstraintBearing::event(QEvent *e) { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintBearing.h b/src/Mod/Fem/Gui/TaskFemConstraintBearing.h index 4b8d81d15a..ffa0f9094b 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintBearing.h +++ b/src/Mod/Fem/Gui/TaskFemConstraintBearing.h @@ -80,7 +80,7 @@ class TaskDlgFemConstraintBearing : public TaskDlgFemConstraint Q_OBJECT public: - TaskDlgFemConstraintBearing() {} + TaskDlgFemConstraintBearing() = default; explicit TaskDlgFemConstraintBearing(ViewProviderFemConstraintBearing *ConstraintView); /// is called by the framework if the dialog is accepted (Ok) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp index c7e09b6498..19c9c38152 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp @@ -122,8 +122,7 @@ TaskFemConstraintContact::TaskFemConstraintContact(ViewProviderFemConstraintCont updateUI(); } -TaskFemConstraintContact::~TaskFemConstraintContact() -{} +TaskFemConstraintContact::~TaskFemConstraintContact() = default; void TaskFemConstraintContact::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp index 419d5312d1..0455bce2d9 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp @@ -181,8 +181,7 @@ TaskFemConstraintDisplacement::TaskFemConstraintDisplacement( updateUI(); } -TaskFemConstraintDisplacement::~TaskFemConstraintDisplacement() -{} +TaskFemConstraintDisplacement::~TaskFemConstraintDisplacement() = default; void TaskFemConstraintDisplacement::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp index ec2ed3fbce..054f9ebc82 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFixed.cpp @@ -88,8 +88,7 @@ TaskFemConstraintFixed::TaskFemConstraintFixed(ViewProviderFemConstraintFixed* C updateUI(); } -TaskFemConstraintFixed::~TaskFemConstraintFixed() -{} +TaskFemConstraintFixed::~TaskFemConstraintFixed() = default; void TaskFemConstraintFixed::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp index 9579402dd8..e7865615d1 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintFluidBoundary.cpp @@ -774,8 +774,7 @@ bool TaskFemConstraintFluidBoundary::getReverse() const return ui->checkReverse->isChecked(); } -TaskFemConstraintFluidBoundary::~TaskFemConstraintFluidBoundary() -{} +TaskFemConstraintFluidBoundary::~TaskFemConstraintFluidBoundary() = default; void TaskFemConstraintFluidBoundary::addToSelection() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp b/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp index 0c031e23af..40783aaf23 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintForce.cpp @@ -389,8 +389,7 @@ bool TaskFemConstraintForce::getReverse() const return ui->checkReverse->isChecked(); } -TaskFemConstraintForce::~TaskFemConstraintForce() -{} +TaskFemConstraintForce::~TaskFemConstraintForce() = default; bool TaskFemConstraintForce::event(QEvent* e) { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintGear.h b/src/Mod/Fem/Gui/TaskFemConstraintGear.h index 6e06d79a23..c8f12ad7d8 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintGear.h +++ b/src/Mod/Fem/Gui/TaskFemConstraintGear.h @@ -62,7 +62,7 @@ class TaskDlgFemConstraintGear : public TaskDlgFemConstraintBearing Q_OBJECT public: - TaskDlgFemConstraintGear() {} + TaskDlgFemConstraintGear() = default; explicit TaskDlgFemConstraintGear(ViewProviderFemConstraintGear *ConstraintView); /// is called by the framework if the dialog is accepted (Ok) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp b/src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp index 805f242062..de43337a76 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintHeatflux.cpp @@ -135,8 +135,7 @@ TaskFemConstraintHeatflux::TaskFemConstraintHeatflux( updateUI(); } -TaskFemConstraintHeatflux::~TaskFemConstraintHeatflux() -{} +TaskFemConstraintHeatflux::~TaskFemConstraintHeatflux() = default; void TaskFemConstraintHeatflux::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp b/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp index 93d06efda6..3c0b56a688 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintInitialTemperature.cpp @@ -65,8 +65,7 @@ TaskFemConstraintInitialTemperature::TaskFemConstraintInitialTemperature( ui->if_temperature->bind(pcConstraint->initialTemperature); } -TaskFemConstraintInitialTemperature::~TaskFemConstraintInitialTemperature() -{} +TaskFemConstraintInitialTemperature::~TaskFemConstraintInitialTemperature() = default; std::string TaskFemConstraintInitialTemperature::get_temperature() const { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp index e9306a2ab6..0cf696b228 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPlaneRotation.cpp @@ -96,8 +96,7 @@ TaskFemConstraintPlaneRotation::TaskFemConstraintPlaneRotation( updateUI(); } -TaskFemConstraintPlaneRotation::~TaskFemConstraintPlaneRotation() -{} +TaskFemConstraintPlaneRotation::~TaskFemConstraintPlaneRotation() = default; void TaskFemConstraintPlaneRotation::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp index 107dcffa99..94304b2bf6 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintPressure.cpp @@ -98,8 +98,7 @@ TaskFemConstraintPressure::TaskFemConstraintPressure( updateUI(); } -TaskFemConstraintPressure::~TaskFemConstraintPressure() -{} +TaskFemConstraintPressure::~TaskFemConstraintPressure() = default; void TaskFemConstraintPressure::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintSpring.cpp b/src/Mod/Fem/Gui/TaskFemConstraintSpring.cpp index 432caa4dd2..c3e4264db2 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintSpring.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintSpring.cpp @@ -112,8 +112,7 @@ TaskFemConstraintSpring::TaskFemConstraintSpring(ViewProviderFemConstraintSpring updateUI(); } -TaskFemConstraintSpring::~TaskFemConstraintSpring() -{} +TaskFemConstraintSpring::~TaskFemConstraintSpring() = default; void TaskFemConstraintSpring::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp b/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp index f99897d4ce..95dc613db4 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintTemperature.cpp @@ -115,8 +115,7 @@ TaskFemConstraintTemperature::TaskFemConstraintTemperature( updateUI(); } -TaskFemConstraintTemperature::~TaskFemConstraintTemperature() -{} +TaskFemConstraintTemperature::~TaskFemConstraintTemperature() = default; void TaskFemConstraintTemperature::updateUI() { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintTransform.cpp b/src/Mod/Fem/Gui/TaskFemConstraintTransform.cpp index f7841b3221..99bc1d5e48 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintTransform.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintTransform.cpp @@ -166,8 +166,7 @@ TaskFemConstraintTransform::TaskFemConstraintTransform( } } -TaskFemConstraintTransform::~TaskFemConstraintTransform() -{} +TaskFemConstraintTransform::~TaskFemConstraintTransform() = default; const QString TaskFemConstraintTransform::makeText(const App::DocumentObject* obj) const { diff --git a/src/Mod/Fem/Gui/TaskObjectName.cpp b/src/Mod/Fem/Gui/TaskObjectName.cpp index 54f22d1ab2..8c725cab19 100644 --- a/src/Mod/Fem/Gui/TaskObjectName.cpp +++ b/src/Mod/Fem/Gui/TaskObjectName.cpp @@ -68,8 +68,7 @@ void TaskObjectName::TextChanged (const QString & text) //pcObject->Label.setValue(text.toUtf8()); } -TaskObjectName::~TaskObjectName() -{} +TaskObjectName::~TaskObjectName() = default; #include "moc_TaskObjectName.cpp" diff --git a/src/Mod/Fem/Gui/TaskPostBoxes.cpp b/src/Mod/Fem/Gui/TaskPostBoxes.cpp index c9aefa7136..e1851748a5 100644 --- a/src/Mod/Fem/Gui/TaskPostBoxes.cpp +++ b/src/Mod/Fem/Gui/TaskPostBoxes.cpp @@ -241,8 +241,7 @@ TaskPostBox::TaskPostBox(Gui::ViewProviderDocumentObject* view, const QPixmap& i m_view(view) {} -TaskPostBox::~TaskPostBox() -{} +TaskPostBox::~TaskPostBox() = default; bool TaskPostBox::autoApply() { @@ -291,8 +290,7 @@ TaskDlgPost::TaskDlgPost(Gui::ViewProviderDocumentObject* view) assert(view); } -TaskDlgPost::~TaskDlgPost() -{} +TaskDlgPost::~TaskDlgPost() = default; QDialogButtonBox::StandardButtons TaskDlgPost::getStandardButtons() const { @@ -421,10 +419,7 @@ TaskPostDisplay::TaskPostDisplay(Gui::ViewProviderDocumentObject* view, QWidget* ui->Transparency->setToolTip(QString::number(trans) + QString::fromLatin1(" %")); } -TaskPostDisplay::~TaskPostDisplay() -{ - -} +TaskPostDisplay::~TaskPostDisplay() = default; void TaskPostDisplay::setupConnections() { @@ -488,8 +483,7 @@ TaskPostFunction::TaskPostFunction(ViewProviderDocumentObject* view, QWidget* pa this->groupLayout()->addWidget(w); } -TaskPostFunction::~TaskPostFunction() -{} +TaskPostFunction::~TaskPostFunction() = default; void TaskPostFunction::applyPythonCode() { @@ -569,8 +563,7 @@ TaskPostDataAlongLine::TaskPostDataAlongLine(ViewProviderDocumentObject* view, Q updateEnumerationList(getTypedView()->VectorMode, ui->VectorMode); } -TaskPostDataAlongLine::~TaskPostDataAlongLine() -{} +TaskPostDataAlongLine::~TaskPostDataAlongLine() = default; void TaskPostDataAlongLine::setupConnectionsStep1() { @@ -1269,8 +1262,7 @@ TaskPostClip::TaskPostClip(ViewProviderDocumentObject* view, App::PropertyLink* static_cast(getObject())->InsideOut.getValue()); } -TaskPostClip::~TaskPostClip() -{} +TaskPostClip::~TaskPostClip() = default; void TaskPostClip::setupConnections() { @@ -1438,8 +1430,7 @@ TaskPostContours::TaskPostContours(ViewProviderDocumentObject* view, QWidget* pa connect(ui->noColorCB, &QCheckBox::toggled, this, &TaskPostContours::onNoColorChanged); } -TaskPostContours::~TaskPostContours() -{} +TaskPostContours::~TaskPostContours() = default; void TaskPostContours::applyPythonCode() {} @@ -1558,8 +1549,7 @@ TaskPostCut::TaskPostCut(ViewProviderDocumentObject* view, App::PropertyLink* fu ui->CreateButton->setPopupMode(QToolButton::InstantPopup); } -TaskPostCut::~TaskPostCut() -{} +TaskPostCut::~TaskPostCut() = default; void TaskPostCut::setupConnections() { @@ -1709,8 +1699,7 @@ TaskPostScalarClip::TaskPostScalarClip(ViewProviderDocumentObject* view, QWidget "init: scalar_factor, slider_value: %f, %i: \n", scalar_factor, slider_value); } -TaskPostScalarClip::~TaskPostScalarClip() -{} +TaskPostScalarClip::~TaskPostScalarClip() = default; void TaskPostScalarClip::setupConnections() { @@ -1851,8 +1840,7 @@ TaskPostWarpVector::TaskPostWarpVector(ViewProviderDocumentObject* view, QWidget Base::Console().Log("init: warp_factor, slider_value: %f, %i: \n", warp_factor, slider_value); } -TaskPostWarpVector::~TaskPostWarpVector() -{} +TaskPostWarpVector::~TaskPostWarpVector() = default; void TaskPostWarpVector::setupConnections() { diff --git a/src/Mod/Fem/Gui/TaskTetParameter.cpp b/src/Mod/Fem/Gui/TaskTetParameter.cpp index 89e9ed4c70..3451a5f0fc 100644 --- a/src/Mod/Fem/Gui/TaskTetParameter.cpp +++ b/src/Mod/Fem/Gui/TaskTetParameter.cpp @@ -79,8 +79,7 @@ TaskTetParameter::TaskTetParameter(Fem::FemMeshShapeNetgenObject* pcObject, QWid setInfo(); } -TaskTetParameter::~TaskTetParameter() -{} +TaskTetParameter::~TaskTetParameter() = default; void TaskTetParameter::SwitchMethod(int Value) { diff --git a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp index 59c73ea838..8833bc0c36 100644 --- a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp +++ b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp @@ -97,9 +97,7 @@ ViewProviderFemAnalysis::ViewProviderFemAnalysis() sPixmap = "FEM_Analysis"; } -ViewProviderFemAnalysis::~ViewProviderFemAnalysis() -{ -} +ViewProviderFemAnalysis::~ViewProviderFemAnalysis() = default; void ViewProviderFemAnalysis::attach(App::DocumentObject *obj) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintBearing.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintBearing.cpp index d8a85a0525..0a25230f65 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintBearing.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintBearing.cpp @@ -47,9 +47,7 @@ ViewProviderFemConstraintBearing::ViewProviderFemConstraintBearing() sPixmap = "FEM_ConstraintBearing"; } -ViewProviderFemConstraintBearing::~ViewProviderFemConstraintBearing() -{ -} +ViewProviderFemConstraintBearing::~ViewProviderFemConstraintBearing() = default; bool ViewProviderFemConstraintBearing::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintContact.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintContact.cpp index c76a19fc42..d305504169 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintContact.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintContact.cpp @@ -50,9 +50,7 @@ ViewProviderFemConstraintContact::ViewProviderFemConstraintContact() ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintContact::~ViewProviderFemConstraintContact() -{ -} +ViewProviderFemConstraintContact::~ViewProviderFemConstraintContact() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintContact::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintDisplacement.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintDisplacement.cpp index c51af50c7c..fa4af6f115 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintDisplacement.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintDisplacement.cpp @@ -49,9 +49,7 @@ ViewProviderFemConstraintDisplacement::ViewProviderFemConstraintDisplacement() ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintDisplacement::~ViewProviderFemConstraintDisplacement() -{ -} +ViewProviderFemConstraintDisplacement::~ViewProviderFemConstraintDisplacement() = default; // FIXME setEdit needs a careful review bool ViewProviderFemConstraintDisplacement::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintFixed.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintFixed.cpp index 739f73094a..3b661afb86 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintFixed.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintFixed.cpp @@ -48,9 +48,7 @@ ViewProviderFemConstraintFixed::ViewProviderFemConstraintFixed() sPixmap = "FEM_ConstraintFixed"; } -ViewProviderFemConstraintFixed::~ViewProviderFemConstraintFixed() -{ -} +ViewProviderFemConstraintFixed::~ViewProviderFemConstraintFixed() = default; bool ViewProviderFemConstraintFixed::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintFluidBoundary.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintFluidBoundary.cpp index bccfb8824e..c3035cc3b6 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintFluidBoundary.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintFluidBoundary.cpp @@ -49,9 +49,7 @@ ViewProviderFemConstraintFluidBoundary::ViewProviderFemConstraintFluidBoundary() sPixmap = "FEM_ConstraintFluidBoundary"; } -ViewProviderFemConstraintFluidBoundary::~ViewProviderFemConstraintFluidBoundary() -{ -} +ViewProviderFemConstraintFluidBoundary::~ViewProviderFemConstraintFluidBoundary() = default; bool ViewProviderFemConstraintFluidBoundary::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintForce.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintForce.cpp index 30de5d22d0..7749c039e2 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintForce.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintForce.cpp @@ -49,9 +49,7 @@ ViewProviderFemConstraintForce::ViewProviderFemConstraintForce() sPixmap = "FEM_ConstraintForce"; } -ViewProviderFemConstraintForce::~ViewProviderFemConstraintForce() -{ -} +ViewProviderFemConstraintForce::~ViewProviderFemConstraintForce() = default; bool ViewProviderFemConstraintForce::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintGear.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintGear.cpp index baa3f53062..48624fa391 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintGear.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintGear.cpp @@ -50,9 +50,7 @@ ViewProviderFemConstraintGear::ViewProviderFemConstraintGear() sPixmap = "FEM_ConstraintGear"; } -ViewProviderFemConstraintGear::~ViewProviderFemConstraintGear() -{ -} +ViewProviderFemConstraintGear::~ViewProviderFemConstraintGear() = default; bool ViewProviderFemConstraintGear::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintHeatflux.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintHeatflux.cpp index 1013a2021c..f4592da203 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintHeatflux.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintHeatflux.cpp @@ -51,9 +51,7 @@ ViewProviderFemConstraintHeatflux::ViewProviderFemConstraintHeatflux() ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintHeatflux::~ViewProviderFemConstraintHeatflux() -{ -} +ViewProviderFemConstraintHeatflux::~ViewProviderFemConstraintHeatflux() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintHeatflux::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintInitialTemperature.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintInitialTemperature.cpp index 6d31c7e183..d5a9a072d5 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintInitialTemperature.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintInitialTemperature.cpp @@ -42,9 +42,7 @@ ViewProviderFemConstraintInitialTemperature::ViewProviderFemConstraintInitialTem ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintInitialTemperature::~ViewProviderFemConstraintInitialTemperature() -{ -} +ViewProviderFemConstraintInitialTemperature::~ViewProviderFemConstraintInitialTemperature() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintInitialTemperature::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintOnBoundary.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintOnBoundary.cpp index 2b486b8662..90bf634ce6 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintOnBoundary.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintOnBoundary.cpp @@ -36,13 +36,9 @@ using namespace FemGui; PROPERTY_SOURCE(FemGui::ViewProviderFemConstraintOnBoundary, FemGui::ViewProviderFemConstraint) -ViewProviderFemConstraintOnBoundary::ViewProviderFemConstraintOnBoundary() -{ -} +ViewProviderFemConstraintOnBoundary::ViewProviderFemConstraintOnBoundary() = default; -ViewProviderFemConstraintOnBoundary::~ViewProviderFemConstraintOnBoundary() -{ -} +ViewProviderFemConstraintOnBoundary::~ViewProviderFemConstraintOnBoundary() = default; void ViewProviderFemConstraintOnBoundary::highlightReferences(const bool on) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp index 8b7dd27409..9e0effc171 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintPlaneRotation.cpp @@ -52,9 +52,7 @@ ViewProviderFemConstraintPlaneRotation::ViewProviderFemConstraintPlaneRotation() ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintPlaneRotation::~ViewProviderFemConstraintPlaneRotation() -{ -} +ViewProviderFemConstraintPlaneRotation::~ViewProviderFemConstraintPlaneRotation() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintPlaneRotation::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPressure.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintPressure.cpp index fd8ebf3c65..8595a4f9a3 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPressure.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintPressure.cpp @@ -47,9 +47,7 @@ ViewProviderFemConstraintPressure::ViewProviderFemConstraintPressure() ADD_PROPERTY(FaceColor, (0.0f, 0.2f, 0.8f)); } -ViewProviderFemConstraintPressure::~ViewProviderFemConstraintPressure() -{ -} +ViewProviderFemConstraintPressure::~ViewProviderFemConstraintPressure() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintPressure::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPulley.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintPulley.cpp index 100377c6df..5ce1c629d6 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPulley.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintPulley.cpp @@ -47,9 +47,7 @@ ViewProviderFemConstraintPulley::ViewProviderFemConstraintPulley() sPixmap = "FEM_ConstraintPulley"; } -ViewProviderFemConstraintPulley::~ViewProviderFemConstraintPulley() -{ -} +ViewProviderFemConstraintPulley::~ViewProviderFemConstraintPulley() = default; bool ViewProviderFemConstraintPulley::setEdit(int ModNum) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintSpring.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintSpring.cpp index 5a9f07f0ae..eda0792dae 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintSpring.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintSpring.cpp @@ -47,9 +47,7 @@ ViewProviderFemConstraintSpring::ViewProviderFemConstraintSpring() ADD_PROPERTY(FaceColor, (0.0f, 0.2f, 0.8f)); } -ViewProviderFemConstraintSpring::~ViewProviderFemConstraintSpring() -{ -} +ViewProviderFemConstraintSpring::~ViewProviderFemConstraintSpring() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintSpring::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintTemperature.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintTemperature.cpp index 8833bb26f8..505162f0cb 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintTemperature.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintTemperature.cpp @@ -50,9 +50,7 @@ ViewProviderFemConstraintTemperature::ViewProviderFemConstraintTemperature() ADD_PROPERTY(FaceColor, (0.2f, 0.3f, 0.2f)); } -ViewProviderFemConstraintTemperature::~ViewProviderFemConstraintTemperature() -{ -} +ViewProviderFemConstraintTemperature::~ViewProviderFemConstraintTemperature() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintTemperature::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp index 41220aa6dc..ec47c6a238 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp @@ -48,9 +48,7 @@ ViewProviderFemConstraintTransform::ViewProviderFemConstraintTransform() sPixmap = "FEM_ConstraintTransform"; } -ViewProviderFemConstraintTransform::~ViewProviderFemConstraintTransform() -{ -} +ViewProviderFemConstraintTransform::~ViewProviderFemConstraintTransform() = default; //FIXME setEdit needs a careful review bool ViewProviderFemConstraintTransform::setEdit(int ModNum) diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.h b/src/Mod/Fem/Gui/ViewProviderFemMesh.h index 4aaac55d0f..31e76fed8f 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.h +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.h @@ -41,8 +41,8 @@ namespace FemGui class ViewProviderFEMMeshBuilder : public Gui::ViewProviderBuilder { public: - ViewProviderFEMMeshBuilder(){} - ~ViewProviderFEMMeshBuilder() override{} + ViewProviderFEMMeshBuilder()= default; + ~ViewProviderFEMMeshBuilder() override= default; void buildNodes(const App::Property*, std::vector&) const override; void createMesh(const App::Property*, SoCoordinate3*, diff --git a/src/Mod/Fem/Gui/ViewProviderFemMeshShape.cpp b/src/Mod/Fem/Gui/ViewProviderFemMeshShape.cpp index 0fb21766bb..e53b4fd76a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMeshShape.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMeshShape.cpp @@ -29,12 +29,6 @@ using namespace FemGui; PROPERTY_SOURCE(FemGui::ViewProviderFemMeshShape, FemGui::ViewProviderFemMesh) -ViewProviderFemMeshShape::ViewProviderFemMeshShape() -{ +ViewProviderFemMeshShape::ViewProviderFemMeshShape() = default; -} - -ViewProviderFemMeshShape::~ViewProviderFemMeshShape() -{ - -} +ViewProviderFemMeshShape::~ViewProviderFemMeshShape() = default; diff --git a/src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.cpp b/src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.cpp index d734c31784..d9d0bee6b8 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.cpp @@ -49,10 +49,7 @@ ViewProviderFemMeshShapeNetgen::ViewProviderFemMeshShapeNetgen() sPixmap = "FEM_MeshNetgenFromShape"; } -ViewProviderFemMeshShapeNetgen::~ViewProviderFemMeshShapeNetgen() -{ - -} +ViewProviderFemMeshShapeNetgen::~ViewProviderFemMeshShapeNetgen() = default; void ViewProviderFemMeshShapeNetgen::setupContextMenu(QMenu* menu, QObject* receiver, const char* member) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.cpp index a8803ee909..33260c409e 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.cpp @@ -44,8 +44,7 @@ ViewProviderFemPostDataAlongLine::ViewProviderFemPostDataAlongLine() sPixmap = "FEM_PostFilterDataAlongLine"; } -ViewProviderFemPostDataAlongLine::~ViewProviderFemPostDataAlongLine() -{} +ViewProviderFemPostDataAlongLine::~ViewProviderFemPostDataAlongLine() = default; void ViewProviderFemPostDataAlongLine::setupTaskDialog(TaskDlgPost* dlg) { @@ -75,8 +74,7 @@ void ViewProviderFemPostDataAtPoint::onSelectionChanged(const Gui::SelectionChan // because a single point does not make sense with a color range. } -ViewProviderFemPostDataAtPoint::~ViewProviderFemPostDataAtPoint() -{} +ViewProviderFemPostDataAtPoint::~ViewProviderFemPostDataAtPoint() = default; void ViewProviderFemPostDataAtPoint::setupTaskDialog(TaskDlgPost* dlg) { @@ -94,8 +92,7 @@ ViewProviderFemPostClip::ViewProviderFemPostClip() { sPixmap = "FEM_PostFilterClipRegion"; } -ViewProviderFemPostClip::~ViewProviderFemPostClip() -{} +ViewProviderFemPostClip::~ViewProviderFemPostClip() = default; void ViewProviderFemPostClip::setupTaskDialog(TaskDlgPost* dlg) { @@ -117,8 +114,7 @@ ViewProviderFemPostContours::ViewProviderFemPostContours() sPixmap = "FEM_PostFilterContours"; } -ViewProviderFemPostContours::~ViewProviderFemPostContours() -{} +ViewProviderFemPostContours::~ViewProviderFemPostContours() = default; void ViewProviderFemPostContours::setupTaskDialog(TaskDlgPost* dlg) { @@ -136,8 +132,7 @@ ViewProviderFemPostCut::ViewProviderFemPostCut() sPixmap = "FEM_PostFilterCutFunction"; } -ViewProviderFemPostCut::~ViewProviderFemPostCut() -{} +ViewProviderFemPostCut::~ViewProviderFemPostCut() = default; void ViewProviderFemPostCut::setupTaskDialog(TaskDlgPost* dlg) { @@ -160,9 +155,7 @@ ViewProviderFemPostScalarClip::ViewProviderFemPostScalarClip() sPixmap = "FEM_PostFilterClipScalar"; } -ViewProviderFemPostScalarClip::~ViewProviderFemPostScalarClip() { - -} +ViewProviderFemPostScalarClip::~ViewProviderFemPostScalarClip() = default; void ViewProviderFemPostScalarClip::setupTaskDialog(TaskDlgPost* dlg) { @@ -183,8 +176,7 @@ ViewProviderFemPostWarpVector::ViewProviderFemPostWarpVector() sPixmap = "FEM_PostFilterWarp"; } -ViewProviderFemPostWarpVector::~ViewProviderFemPostWarpVector() -{} +ViewProviderFemPostWarpVector::~ViewProviderFemPostWarpVector() = default; void ViewProviderFemPostWarpVector::setupTaskDialog(TaskDlgPost* dlg) { diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp index 9d08b817dd..bd195196f9 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp @@ -86,13 +86,9 @@ void FunctionWidget::onObjectsChanged(const App::DocumentObject& obj, const App: PROPERTY_SOURCE(FemGui::ViewProviderFemPostFunctionProvider, Gui::ViewProviderDocumentObject) -ViewProviderFemPostFunctionProvider::ViewProviderFemPostFunctionProvider() -{ -} +ViewProviderFemPostFunctionProvider::ViewProviderFemPostFunctionProvider() = default; -ViewProviderFemPostFunctionProvider::~ViewProviderFemPostFunctionProvider() -{ -} +ViewProviderFemPostFunctionProvider::~ViewProviderFemPostFunctionProvider() = default; std::vector< App::DocumentObject* > ViewProviderFemPostFunctionProvider::claimChildren() const { @@ -379,9 +375,7 @@ ViewProviderFemPostBoxFunction::ViewProviderFemPostBoxFunction() getGeometryNode()->addChild(ShapeNodes::postBox()); } -ViewProviderFemPostBoxFunction::~ViewProviderFemPostBoxFunction() -{ -} +ViewProviderFemPostBoxFunction::~ViewProviderFemPostBoxFunction() = default; void ViewProviderFemPostBoxFunction::draggerUpdate(SoDragger* m) { @@ -461,9 +455,7 @@ BoxWidget::BoxWidget() this, &BoxWidget::heightChanged); } -BoxWidget::~BoxWidget() -{ -} +BoxWidget::~BoxWidget() = default; void BoxWidget::applyPythonCode() { @@ -564,9 +556,7 @@ ViewProviderFemPostCylinderFunction::ViewProviderFemPostCylinderFunction() getGeometryNode()->addChild(ShapeNodes::postCylinder()); } -ViewProviderFemPostCylinderFunction::~ViewProviderFemPostCylinderFunction() -{ -} +ViewProviderFemPostCylinderFunction::~ViewProviderFemPostCylinderFunction() = default; void ViewProviderFemPostCylinderFunction::draggerUpdate(SoDragger* m) { @@ -646,9 +636,7 @@ CylinderWidget::CylinderWidget() this, &CylinderWidget::radiusChanged); } -CylinderWidget::~CylinderWidget() -{ -} +CylinderWidget::~CylinderWidget() = default; void CylinderWidget::applyPythonCode() { @@ -741,9 +729,7 @@ ViewProviderFemPostPlaneFunction::ViewProviderFemPostPlaneFunction() getGeometryNode()->addChild(ShapeNodes::postPlane()); } -ViewProviderFemPostPlaneFunction::~ViewProviderFemPostPlaneFunction() -{ -} +ViewProviderFemPostPlaneFunction::~ViewProviderFemPostPlaneFunction() = default; void ViewProviderFemPostPlaneFunction::draggerUpdate(SoDragger* m) { @@ -860,9 +846,7 @@ PlaneWidget::PlaneWidget() this, &PlaneWidget::normalChanged); } -PlaneWidget::~PlaneWidget() -{ -} +PlaneWidget::~PlaneWidget() = default; void PlaneWidget::applyPythonCode() { @@ -936,9 +920,7 @@ ViewProviderFemPostSphereFunction::ViewProviderFemPostSphereFunction() getGeometryNode()->addChild(ShapeNodes::postSphere()); } -ViewProviderFemPostSphereFunction::~ViewProviderFemPostSphereFunction() -{ -} +ViewProviderFemPostSphereFunction::~ViewProviderFemPostSphereFunction() = default; SoTransformManip* ViewProviderFemPostSphereFunction::setupManipulator() { @@ -1022,9 +1004,7 @@ SphereWidget::SphereWidget() this, &SphereWidget::radiusChanged); } -SphereWidget::~SphereWidget() -{ -} +SphereWidget::~SphereWidget() = default; void SphereWidget::applyPythonCode() { diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.h b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.h index c896b67bad..f3ed405c3b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFunction.h +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFunction.h @@ -54,7 +54,7 @@ class FemGuiExport FunctionWidget : public QWidget Q_OBJECT public: FunctionWidget() : m_block(false), m_view(nullptr), m_object(nullptr) {} - ~FunctionWidget() override {} + ~FunctionWidget() override = default; virtual void applyPythonCode() = 0; virtual void setViewProvider(ViewProviderFemPostFunction* view); diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.cpp index 340e5fd638..37c20c032f 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.cpp @@ -48,9 +48,7 @@ ViewProviderFemPostPipeline::ViewProviderFemPostPipeline() sPixmap = "FEM_PostPipelineFromResult"; } -ViewProviderFemPostPipeline::~ViewProviderFemPostPipeline() -{ -} +ViewProviderFemPostPipeline::~ViewProviderFemPostPipeline() = default; std::vector< App::DocumentObject* > ViewProviderFemPostPipeline::claimChildren() const { diff --git a/src/Mod/Fem/Gui/ViewProviderResult.cpp b/src/Mod/Fem/Gui/ViewProviderResult.cpp index 29be2b7a69..cd0af53a49 100644 --- a/src/Mod/Fem/Gui/ViewProviderResult.cpp +++ b/src/Mod/Fem/Gui/ViewProviderResult.cpp @@ -34,10 +34,7 @@ ViewProviderResult::ViewProviderResult() sPixmap = "FEM_ResultShow"; } -ViewProviderResult::~ViewProviderResult() -{ - -} +ViewProviderResult::~ViewProviderResult() = default; // Python feature ----------------------------------------------------------------------- diff --git a/src/Mod/Fem/Gui/ViewProviderSolver.cpp b/src/Mod/Fem/Gui/ViewProviderSolver.cpp index d69125f49a..1734de99d0 100644 --- a/src/Mod/Fem/Gui/ViewProviderSolver.cpp +++ b/src/Mod/Fem/Gui/ViewProviderSolver.cpp @@ -44,8 +44,7 @@ ViewProviderSolver::ViewProviderSolver() sPixmap = "FEM_SolverStandard"; } -ViewProviderSolver::~ViewProviderSolver() -{} +ViewProviderSolver::~ViewProviderSolver() = default; std::vector ViewProviderSolver::getDisplayModes() const { diff --git a/src/Mod/Fem/Gui/Workbench.cpp b/src/Mod/Fem/Gui/Workbench.cpp index 232d69d5b3..8c09d82d21 100755 --- a/src/Mod/Fem/Gui/Workbench.cpp +++ b/src/Mod/Fem/Gui/Workbench.cpp @@ -83,13 +83,9 @@ using namespace FemGui; /// @namespace FemGui @class Workbench TYPESYSTEM_SOURCE(FemGui::Workbench, Gui::StdWorkbench) -Workbench::Workbench() -{ -} +Workbench::Workbench() = default; -Workbench::~Workbench() -{ -} +Workbench::~Workbench() = default; void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) const {