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

@@ -1007,7 +1007,7 @@ namespace Reen {
class ScalarProduct
{
public:
ScalarProduct(const math_Matrix& mat) : mat(mat)
explicit ScalarProduct(const math_Matrix& mat) : mat(mat)
{
}
std::vector<double> multiply(int col) const

View File

@@ -55,14 +55,14 @@ public:
* Constructor
* @param iSize Length of Knots vector
*/
SplineBasisfunction(int iSize);
explicit SplineBasisfunction(int iSize);
/**
* Constructor
* @param vKnots Knot vector
* @param iOrder Order (degree + 1) of the basic polynomial
*/
SplineBasisfunction(TColStd_Array1OfReal& vKnots, int iOrder=1);
explicit SplineBasisfunction(TColStd_Array1OfReal& vKnots, int iOrder=1);
/**
* Constructor
@@ -144,14 +144,14 @@ public:
* Constructor
* @param iSize Length of the knot vector
*/
BSplineBasis(int iSize);
explicit BSplineBasis(int iSize);
/**
* Constructor
* @param vKnots Knot vector
* @param iOrder Order (degree + 1) of the basic polynomial
*/
BSplineBasis(TColStd_Array1OfReal& vKnots, int iOrder=1);
explicit BSplineBasis(TColStd_Array1OfReal& vKnots, int iOrder=1);
/**
* Constructor
@@ -255,7 +255,7 @@ class ReenExport ParameterCorrection
public:
// Constructor
ParameterCorrection(unsigned usUOrder=4, //Order in u-direction (order = degree + 1)
explicit ParameterCorrection(unsigned usUOrder=4, //Order in u-direction (order = degree + 1)
unsigned usVOrder=4, //Order in v-direction
unsigned usUCtrlpoints=6, //Qty. of the control points in the u-direction
unsigned usVCtrlpoints=6); //Qty. of the control points in the v-direction
@@ -370,7 +370,7 @@ class ReenExport BSplineParameterCorrection : public ParameterCorrection
{
public:
// Constructor
BSplineParameterCorrection(unsigned usUOrder=4, //Order in u-direction (order = degree + 1)
explicit BSplineParameterCorrection(unsigned usUOrder=4, //Order in u-direction (order = degree + 1)
unsigned usVOrder=4, //Order in the v-direction
unsigned usUCtrlpoints=6, //Qty. of the control points in u-direction
unsigned usVCtrlpoints=6); //Qty. of the control points in v-direction

View File

@@ -49,7 +49,7 @@ private:
class NormalEstimation
{
public:
NormalEstimation(const Points::PointKernel&);
explicit NormalEstimation(const Points::PointKernel&);
/** \brief Set the number of k nearest neighbors to use for the feature estimation.
* \param[in] k the number of k-nearest neighbors
*/

View File

@@ -35,7 +35,7 @@ class FitBSplineSurfaceWidget : public QWidget
Q_OBJECT
public:
FitBSplineSurfaceWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
explicit FitBSplineSurfaceWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
~FitBSplineSurfaceWidget() override;
bool accept();
@@ -58,7 +58,7 @@ class TaskFitBSplineSurface : public Gui::TaskView::TaskDialog
Q_OBJECT
public:
TaskFitBSplineSurface(const App::DocumentObjectT&);
explicit TaskFitBSplineSurface(const App::DocumentObjectT&);
~TaskFitBSplineSurface() override;
public:

View File

@@ -35,7 +35,7 @@ class PoissonWidget : public QWidget
Q_OBJECT
public:
PoissonWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
explicit PoissonWidget(const App::DocumentObjectT&, QWidget* parent = nullptr);
~PoissonWidget() override;
bool accept();
@@ -53,7 +53,7 @@ class TaskPoisson : public Gui::TaskView::TaskDialog
Q_OBJECT
public:
TaskPoisson(const App::DocumentObjectT&);
explicit TaskPoisson(const App::DocumentObjectT&);
~TaskPoisson() override;
public:

View File

@@ -41,7 +41,7 @@ class Segmentation : public QWidget
Q_OBJECT
public:
Segmentation(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
explicit Segmentation(Mesh::Feature* mesh, QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~Segmentation() override;
void accept();
@@ -59,7 +59,7 @@ private:
class TaskSegmentation : public Gui::TaskView::TaskDialog
{
public:
TaskSegmentation(Mesh::Feature* mesh);
explicit TaskSegmentation(Mesh::Feature* mesh);
~TaskSegmentation() override;
public:

View File

@@ -43,7 +43,7 @@ class SegmentationManual : public QWidget
Q_OBJECT
public:
SegmentationManual(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
explicit SegmentationManual(QWidget* parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags());
~SegmentationManual() override;
void reject();
void createSegment();