Mod: modernize C++: use equals default
This commit is contained in:
@@ -85,9 +85,7 @@ ExportOCAF::ExportOCAF(Handle(TDocStd_Document) h, bool explicitPlacement)
|
||||
}
|
||||
}
|
||||
|
||||
ExportOCAF::~ExportOCAF()
|
||||
{
|
||||
}
|
||||
ExportOCAF::~ExportOCAF() = default;
|
||||
|
||||
std::vector<App::DocumentObject*> ExportOCAF::filterPart(App::Part* part) const
|
||||
{
|
||||
|
||||
@@ -90,9 +90,7 @@ ImportOCAF::ImportOCAF(Handle(TDocStd_Document) h, App::Document* d, const std::
|
||||
aColorTool = XCAFDoc_DocumentTool::ColorTool(pDoc->Main());
|
||||
}
|
||||
|
||||
ImportOCAF::~ImportOCAF()
|
||||
{
|
||||
}
|
||||
ImportOCAF::~ImportOCAF() = default;
|
||||
|
||||
void ImportOCAF::tryPlacementFromLoc(App::GeoFeature* part, const TopLoc_Location& part_loc)
|
||||
{
|
||||
@@ -483,9 +481,7 @@ ImportXCAF::ImportXCAF(Handle(TDocStd_Document) h, App::Document* d, const std::
|
||||
hColors = XCAFDoc_DocumentTool::ColorTool(hdoc->Main());
|
||||
}
|
||||
|
||||
ImportXCAF::~ImportXCAF()
|
||||
{
|
||||
}
|
||||
ImportXCAF::~ImportXCAF() = default;
|
||||
|
||||
void ImportXCAF::loadShapes()
|
||||
{
|
||||
|
||||
@@ -185,9 +185,7 @@ ImportOCAF2::ImportOCAF2(Handle(TDocStd_Document) h, App::Document* d, const std
|
||||
setUseLinkGroup(options.useLinkGroup);
|
||||
}
|
||||
|
||||
ImportOCAF2::~ImportOCAF2()
|
||||
{
|
||||
}
|
||||
ImportOCAF2::~ImportOCAF2() = default;
|
||||
|
||||
ImportOCAFOptions ImportOCAF2::customImportOptions()
|
||||
{
|
||||
|
||||
@@ -40,14 +40,9 @@
|
||||
|
||||
using namespace Import;
|
||||
|
||||
StepShape::StepShape()
|
||||
{
|
||||
}
|
||||
StepShape::StepShape() = default;
|
||||
|
||||
|
||||
StepShape::~StepShape()
|
||||
{
|
||||
}
|
||||
StepShape::~StepShape() = default;
|
||||
|
||||
int StepShape::read(const char* fileName)
|
||||
{
|
||||
|
||||
@@ -465,9 +465,7 @@ ImpExpDxfWrite::ImpExpDxfWrite(std::string filepath) :
|
||||
setOptions();
|
||||
}
|
||||
|
||||
ImpExpDxfWrite::~ImpExpDxfWrite()
|
||||
{
|
||||
}
|
||||
ImpExpDxfWrite::~ImpExpDxfWrite() = default;
|
||||
|
||||
void ImpExpDxfWrite::setOptions()
|
||||
{
|
||||
|
||||
@@ -372,8 +372,6 @@ public:
|
||||
initialize("This module is the ImportGui module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object insert(const Py::Tuple& args, const Py::Dict &kwds)
|
||||
{
|
||||
|
||||
@@ -31,13 +31,9 @@ using namespace ImportGui;
|
||||
/// @namespace ImportGui @class Workbench
|
||||
TYPESYSTEM_SOURCE(ImportGui::Workbench, Gui::StdWorkbench)
|
||||
|
||||
Workbench::Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::Workbench() = default;
|
||||
|
||||
Workbench::~Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::~Workbench() = default;
|
||||
|
||||
Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
{
|
||||
|
||||
@@ -38,8 +38,6 @@ public:
|
||||
initialize("This module is the Measure module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -59,10 +59,7 @@ Measurement::Measurement()
|
||||
References3D.setScope(App::LinkScope::Global);
|
||||
}
|
||||
|
||||
Measurement::~Measurement()
|
||||
{
|
||||
|
||||
}
|
||||
Measurement::~Measurement() = default;
|
||||
|
||||
void Measurement::clear()
|
||||
{
|
||||
|
||||
@@ -140,8 +140,6 @@ public:
|
||||
initialize("This module is the MeshPart module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object invoke_method_varargs(void *method_def, const Py::Tuple &args) override
|
||||
{
|
||||
|
||||
@@ -672,10 +672,6 @@ MeshProjection::MeshProjection(const MeshKernel& rMesh)
|
||||
{
|
||||
}
|
||||
|
||||
MeshProjection::~MeshProjection()
|
||||
{
|
||||
}
|
||||
|
||||
void MeshProjection::discretize(const TopoDS_Edge& aEdge, std::vector<Base::Vector3f>& polyline, std::size_t minPoints) const
|
||||
{
|
||||
BRepAdaptor_Curve clCurve(aEdge);
|
||||
|
||||
@@ -52,7 +52,7 @@ class MeshPartExport CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjector(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
virtual ~CurveProjector() {}
|
||||
virtual ~CurveProjector() = default;
|
||||
|
||||
struct FaceSplitEdge
|
||||
{
|
||||
@@ -89,7 +89,7 @@ class MeshPartExport CurveProjectorShape: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorShape(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
~CurveProjectorShape() override {}
|
||||
~CurveProjectorShape() override = default;
|
||||
|
||||
void projectCurve(const TopoDS_Edge& aEdge,
|
||||
std::vector<FaceSplitEdge> &vSplitEdges);
|
||||
@@ -110,7 +110,7 @@ class MeshPartExport CurveProjectorSimple: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorSimple(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
~CurveProjectorSimple() override {}
|
||||
~CurveProjectorSimple() override = default;
|
||||
|
||||
/// helper to discredicice a Edge...
|
||||
void GetSampledCurves( const TopoDS_Edge& aEdge, std::vector<Base::Vector3f>& rclPoints, unsigned long ulNbOfPoints = 30);
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
};
|
||||
|
||||
CurveProjectorWithToolMesh(const TopoDS_Shape &aShape, const MeshKernel &pMesh,MeshKernel &rToolMesh);
|
||||
~CurveProjectorWithToolMesh() override {}
|
||||
~CurveProjectorWithToolMesh() override = default;
|
||||
|
||||
|
||||
void makeToolMesh(const TopoDS_Edge& aEdge,std::vector<MeshGeomFacet> &cVAry );
|
||||
@@ -174,10 +174,7 @@ public:
|
||||
std::vector<Base::Vector3f> points;
|
||||
};
|
||||
|
||||
/// Construction
|
||||
explicit MeshProjection(const MeshKernel& rMesh);
|
||||
/// Destruction
|
||||
~MeshProjection();
|
||||
|
||||
/**
|
||||
* @brief findSectionParameters
|
||||
|
||||
@@ -55,7 +55,7 @@ std::vector<ColMat<double, 3>> getBoundaries(ColMat<double, 3> vertices, ColMat<
|
||||
class FaceUnwrapper{
|
||||
nurbs::NurbsBase2D nu;
|
||||
public:
|
||||
FaceUnwrapper(){}
|
||||
FaceUnwrapper() = default;
|
||||
FaceUnwrapper(const TopoDS_Face & face);
|
||||
FaceUnwrapper(ColMat<double, 3> xyz_nodes, ColMat<long, 3> tris);
|
||||
void findFlatNodes(int steps, double val);
|
||||
|
||||
@@ -89,7 +89,7 @@ private:
|
||||
Eigen::MatrixXd get_nullspace();
|
||||
|
||||
public:
|
||||
LscmRelax() {}
|
||||
LscmRelax() = default;
|
||||
LscmRelax(
|
||||
RowMat<double, 3> vertices,
|
||||
RowMat<long, 3> triangles,
|
||||
|
||||
@@ -36,7 +36,7 @@ using spMat = Eigen::SparseMatrix<double>;
|
||||
struct NurbsBase2D
|
||||
{
|
||||
//
|
||||
NurbsBase2D(){}
|
||||
NurbsBase2D() = default;
|
||||
NurbsBase2D(Eigen::VectorXd u_knots, Eigen::VectorXd v_knots,
|
||||
Eigen::VectorXd weights,
|
||||
int degree_u=3, int degree_v=3);
|
||||
@@ -81,7 +81,7 @@ struct NurbsBase2D
|
||||
|
||||
struct NurbsBase1D
|
||||
{
|
||||
NurbsBase1D(){}
|
||||
NurbsBase1D() = default;
|
||||
NurbsBase1D(Eigen::VectorXd u_knots, Eigen::VectorXd weights, int degree_u=3);
|
||||
int degree_u;
|
||||
Eigen::VectorXd u_knots;
|
||||
|
||||
@@ -329,9 +329,7 @@ Mesher::Mesher(const TopoDS_Shape& s)
|
||||
{
|
||||
}
|
||||
|
||||
Mesher::~Mesher()
|
||||
{
|
||||
}
|
||||
Mesher::~Mesher() = default;
|
||||
|
||||
Mesh::MeshObject* Mesher::createStandard() const
|
||||
{
|
||||
|
||||
@@ -52,8 +52,6 @@ public:
|
||||
initialize("This module is the MeshPartGui module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
@@ -613,11 +613,6 @@ TaskCrossSections::TaskCrossSections(const Base::BoundBox3d& bb)
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
|
||||
TaskCrossSections::~TaskCrossSections()
|
||||
{
|
||||
// automatically deleted in the sub-class
|
||||
}
|
||||
|
||||
bool TaskCrossSections::accept()
|
||||
{
|
||||
widget->accept();
|
||||
|
||||
@@ -86,7 +86,6 @@ class TaskCrossSections : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
explicit TaskCrossSections(const Base::BoundBox3d& bb);
|
||||
~TaskCrossSections() override;
|
||||
|
||||
public:
|
||||
bool accept() override;
|
||||
|
||||
@@ -104,11 +104,6 @@ TaskCurveOnMesh::TaskCurveOnMesh(Gui::View3DInventor* view)
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
|
||||
TaskCurveOnMesh::~TaskCurveOnMesh()
|
||||
{
|
||||
// automatically deleted in the sub-class
|
||||
}
|
||||
|
||||
bool TaskCurveOnMesh::reject()
|
||||
{
|
||||
widget->reject();
|
||||
|
||||
@@ -68,7 +68,6 @@ class TaskCurveOnMesh : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
explicit TaskCurveOnMesh(Gui::View3DInventor* view);
|
||||
~TaskCurveOnMesh() override;
|
||||
|
||||
public:
|
||||
bool reject() override;
|
||||
|
||||
@@ -96,9 +96,7 @@ Tessellation::Tessellation(QWidget* parent)
|
||||
}
|
||||
}
|
||||
|
||||
Tessellation::~Tessellation()
|
||||
{
|
||||
}
|
||||
Tessellation::~Tessellation() = default;
|
||||
|
||||
void Tessellation::setupConnections()
|
||||
{
|
||||
@@ -502,9 +500,7 @@ Mesh2ShapeGmsh::Mesh2ShapeGmsh(QWidget* parent, Qt::WindowFlags fl)
|
||||
d->geoFile = App::Application::getTempFileName() + "mesh.geo";
|
||||
}
|
||||
|
||||
Mesh2ShapeGmsh::~Mesh2ShapeGmsh()
|
||||
{
|
||||
}
|
||||
Mesh2ShapeGmsh::~Mesh2ShapeGmsh() = default;
|
||||
|
||||
void Mesh2ShapeGmsh::process(App::Document* doc, const std::list<App::SubObjectT>& objs)
|
||||
{
|
||||
@@ -624,11 +620,6 @@ TaskTessellation::TaskTessellation()
|
||||
Content.push_back(taskbox);
|
||||
}
|
||||
|
||||
TaskTessellation::~TaskTessellation()
|
||||
{
|
||||
// automatically deleted in the sub-class
|
||||
}
|
||||
|
||||
void TaskTessellation::open()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -120,7 +120,6 @@ class TaskTessellation : public Gui::TaskView::TaskDialog
|
||||
|
||||
public:
|
||||
TaskTessellation();
|
||||
~TaskTessellation() override;
|
||||
|
||||
public:
|
||||
void open() override;
|
||||
|
||||
@@ -39,13 +39,9 @@ using namespace MeshPartGui;
|
||||
/// @namespace MeshPartGui @class Workbench
|
||||
TYPESYSTEM_SOURCE(MeshPartGui::Workbench, Gui::StdWorkbench)
|
||||
|
||||
Workbench::Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::Workbench() = default;
|
||||
|
||||
Workbench::~Workbench()
|
||||
{
|
||||
}
|
||||
Workbench::~Workbench() = default;
|
||||
|
||||
Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user