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:
@@ -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]{};
|
||||
};
|
||||
|
||||
//=================================================================================================
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user