mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Coding - Fixing clang-tidy warnings #207
First iteration for fixing warnings for: - TKernel - TKMath - TKGeomBase
This commit is contained in:
@@ -2913,8 +2913,6 @@ BSplCLib::SolveBandedSystem(const math_Matrix& Matrix,
|
||||
if ( Abs(divizor) > Toler )
|
||||
Inverse = 1.0e0 / divizor ;
|
||||
else {
|
||||
Inverse = 1.0e0;
|
||||
// std::cout << " BSplCLib::SolveBandedSystem() : zero determinant " << std::endl;
|
||||
ReturnCode = 1;
|
||||
goto FINISH;
|
||||
}
|
||||
|
@@ -27,26 +27,25 @@
|
||||
// knots for bezier (using stack allocation)
|
||||
//=======================================================================
|
||||
|
||||
class BSplCLib_BezierArrays
|
||||
class BSplCLib_BezierArrays
|
||||
{
|
||||
public:
|
||||
BSplCLib_BezierArrays (Standard_Integer Degree)
|
||||
: knots (aKnots[0], 1, 2), mults (aMults[0], 1, 2)
|
||||
{
|
||||
aKnots[0] = 0.;
|
||||
aKnots[1] = 1.;
|
||||
aMults[0] = aMults[1] = Degree + 1;
|
||||
}
|
||||
public:
|
||||
BSplCLib_BezierArrays(Standard_Integer Degree)
|
||||
: aKnots{0., 1.},
|
||||
aMults{Degree + 1, Degree + 1},
|
||||
knots(aKnots[0], 1, 2),
|
||||
mults(aMults[0], 1, 2)
|
||||
{}
|
||||
|
||||
private:
|
||||
Standard_Real aKnots[2];
|
||||
private:
|
||||
Standard_Real aKnots[2];
|
||||
Standard_Integer aMults[2];
|
||||
|
||||
public:
|
||||
|
||||
public:
|
||||
TColStd_Array1OfReal knots;
|
||||
TColStd_Array1OfInteger mults;
|
||||
};
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : IncreaseDegree
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user