1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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:
Pasukhin Dmitry
2025-02-12 15:26:00 +01:00
committed by GitHub
parent a8950426b5
commit fb73c3b712
35 changed files with 120 additions and 77 deletions

View File

@@ -64,7 +64,7 @@ public:
private:
// local buffer, to be sufficient for addressing by index [Degree+1][Degree+1]
// (see math_Matrix implementation)
Standard_Real myBuffer[27 * 27];
Standard_Real myBuffer[27 * 27]{};
};
//=================================================================================================

View File

@@ -46,9 +46,9 @@ struct BSplCLib_DataContainer
"BSplCLib: bspline degree is greater than maximum supported");
}
Standard_Real poles[2 * (25 + 1)];
Standard_Real knots[2 * 25];
Standard_Real ders[4];
Standard_Real poles[2 * (25 + 1)]{};
Standard_Real knots[2 * 25]{};
Standard_Real ders[4]{};
};
// methods for 1 dimensional BSplines