Mod: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-15 19:28:04 +10:00
committed by wwmayer
parent 3877fc62c3
commit 180edfa3cc
263 changed files with 473 additions and 473 deletions

View File

@@ -177,7 +177,7 @@ public:
};
/// Construction
MeshProjection(const MeshKernel& rMesh);
explicit MeshProjection(const MeshKernel& rMesh);
/// Destruction
~MeshProjection();

View File

@@ -48,7 +48,7 @@ public:
Standard = 3
};
Mesher(const TopoDS_Shape&);
explicit Mesher(const TopoDS_Shape&);
~Mesher();
void setMethod(Method m)

View File

@@ -44,7 +44,7 @@ class CrossSections : public QDialog
enum Plane { XY, XZ, YZ };
public:
CrossSections(const Base::BoundBox3d& bb, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
explicit CrossSections(const Base::BoundBox3d& bb, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~CrossSections() override;
void accept() override;
void apply();
@@ -82,7 +82,7 @@ class TaskCrossSections : public Gui::TaskView::TaskDialog
Q_OBJECT
public:
TaskCrossSections(const Base::BoundBox3d& bb);
explicit TaskCrossSections(const Base::BoundBox3d& bb);
~TaskCrossSections() override;
public:

View File

@@ -68,7 +68,7 @@ class CurveOnMeshHandler : public QObject
Q_OBJECT
public:
CurveOnMeshHandler(QObject* parent = nullptr);
explicit CurveOnMeshHandler(QObject* parent = nullptr);
~CurveOnMeshHandler() override;
void enableApproximation(bool);
void setParameters(int maxDegree, GeomAbs_Shape cont, double tol3d, double angle);

View File

@@ -42,7 +42,7 @@ class CurveOnMeshWidget : public QWidget
Q_OBJECT
public:
CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent=nullptr);
explicit CurveOnMeshWidget(Gui::View3DInventor* view, QWidget* parent=nullptr);
~CurveOnMeshWidget() override;
void reject();
@@ -65,7 +65,7 @@ class TaskCurveOnMesh : public Gui::TaskView::TaskDialog
Q_OBJECT
public:
TaskCurveOnMesh(Gui::View3DInventor* view);
explicit TaskCurveOnMesh(Gui::View3DInventor* view);
~TaskCurveOnMesh() override;
public:

View File

@@ -47,7 +47,7 @@ class Mesh2ShapeGmsh : public MeshGui::GmshWidget
Q_OBJECT
public:
Mesh2ShapeGmsh(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
explicit Mesh2ShapeGmsh(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~Mesh2ShapeGmsh() override;
void process(App::Document* doc, const std::list<App::SubObjectT>&);
@@ -77,7 +77,7 @@ class Tessellation : public QWidget
};
public:
Tessellation(QWidget* parent = nullptr);
explicit Tessellation(QWidget* parent = nullptr);
~Tessellation() override;
bool accept();