1
0
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:
dpasukhi
2024-12-21 15:32:44 +00:00
parent 0ffcc44c82
commit f7dea47c33
35 changed files with 93 additions and 161 deletions

View File

@@ -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;
}

View File

@@ -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 :