mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Coding - Initialize member variables with default values #362
Clang-tidy applying rule for cppcoreguidelines-pro-type-member-init. Updated: TKernel and TKMath Update constructor in some classes instead of direct initialization Refactor Bnd_BoundSortBox and Bnd_Box constructors to initialize member variables directly
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
|
||||
Convert_CompBezierCurves2dToBSplineCurve2d::Convert_CompBezierCurves2dToBSplineCurve2d(
|
||||
const Standard_Real AngularTolerance)
|
||||
: myAngular(AngularTolerance),
|
||||
: myDegree(0),
|
||||
myAngular(AngularTolerance),
|
||||
myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
@@ -26,7 +26,8 @@
|
||||
|
||||
Convert_CompBezierCurvesToBSplineCurve::Convert_CompBezierCurvesToBSplineCurve(
|
||||
const Standard_Real AngularTolerance)
|
||||
: myAngular(AngularTolerance),
|
||||
: myDegree(0),
|
||||
myAngular(AngularTolerance),
|
||||
myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
@@ -39,7 +39,8 @@ Convert_ConicToBSplineCurve::Convert_ConicToBSplineCurve(const Standard_Integer
|
||||
const Standard_Integer Degree)
|
||||
: degree(Degree),
|
||||
nbPoles(NbPoles),
|
||||
nbKnots(NbKnots)
|
||||
nbKnots(NbKnots),
|
||||
isperiodic(Standard_False)
|
||||
|
||||
{
|
||||
if (NbPoles >= 2)
|
||||
|
@@ -38,7 +38,9 @@ Convert_ElementarySurfaceToBSplineSurface::Convert_ElementarySurfaceToBSplineSur
|
||||
nbUPoles(NbUPoles),
|
||||
nbVPoles(NbVPoles),
|
||||
nbUKnots(NbUKnots),
|
||||
nbVKnots(NbVKnots)
|
||||
nbVKnots(NbVKnots),
|
||||
isuperiodic(Standard_False),
|
||||
isvperiodic(Standard_False)
|
||||
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user