mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025621: CAST analysis - Avoid constructors not supplying an initial value for all non-static data members
The constructors of classes from following files have been fixed to ensure that all non-static fields are initialized: Adaptor2d_Line2d.cxx Adaptor3d_IsoCurve.cxx Adaptor3d_OffsetCurve.cxx AdvApp2Var_ApproxAFunc2Var.cxx AIS_Dimension.cxx AIS_InteractiveContext.cxx Aspect_DisplayConnection.cxx BiTgte_CurveOnEdge.cxx BiTgte_CurveOnVertex.cxx BRepAdaptor_CompCurve.cxx BRepMesh_Circle.hxx BRepMesh_Delaun.cxx BRepToIGES_BREntity.cxx ChFi2d_AnaFilletAlgo.cxx ChFi2d_ChamferAPI.cxx ChFi2d_FilletAlgo.cxx ChFi2d_FilletAlgo.hxx Extrema_ExtPExtS.cxx Font_FTFont.cxx GccEnt_QualifiedCirc.cxx Geom2dAdaptor_Curve.cxx IGESData_IGESEntity.cxx IGESData_DefSwitch.cxx IGESToBRep_CurveAndSurface.cxx LDOM_XmlReader.cxx math_TrigonometricFunctionRoots.cxx NCollection_ListNode.hxx ProjLib_CompProjectedCurve.cxx ProjLib_ComputeApproxOnPolarSurface.cxx Select3D_Box2d.hxx Select3D_PointData.hxx
This commit is contained in:
@@ -28,17 +28,17 @@ public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Default constructor.
|
||||
Standard_EXPORT BRepMesh_Circle()
|
||||
BRepMesh_Circle() : myRadius(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
//! Constructor.
|
||||
//! @param theLocation location of a circle.
|
||||
//! @param theRadius radius of a circle.
|
||||
Standard_EXPORT BRepMesh_Circle(const gp_XY& theLocation,
|
||||
const Standard_Real theRadius)
|
||||
: myLocation(theLocation),
|
||||
myRadius (theRadius)
|
||||
BRepMesh_Circle(const gp_XY& theLocation,
|
||||
const Standard_Real theRadius)
|
||||
: myLocation(theLocation),
|
||||
myRadius (theRadius)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -75,10 +75,9 @@ namespace {
|
||||
//function : BRepMesh_Delaun
|
||||
//purpose : Creates the triangulation with an empty Mesh data structure
|
||||
//=======================================================================
|
||||
BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
BRepMesh::Array1OfVertexOfDelaun& theVertices)
|
||||
: myCircles(theVertices.Length(), new NCollection_IncAllocator(
|
||||
BRepMesh::MEMORY_BLOCK_SIZE_HUGE))
|
||||
BRepMesh_Delaun::BRepMesh_Delaun(BRepMesh::Array1OfVertexOfDelaun& theVertices)
|
||||
: myCircles (theVertices.Length(), new NCollection_IncAllocator(
|
||||
BRepMesh::MEMORY_BLOCK_SIZE_HUGE))
|
||||
{
|
||||
if ( theVertices.Length() > 2 )
|
||||
{
|
||||
@@ -96,9 +95,9 @@ BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
const Handle( BRepMesh_DataStructureOfDelaun )& theOldMesh,
|
||||
BRepMesh::Array1OfVertexOfDelaun& theVertices)
|
||||
: myCircles( theVertices.Length(), theOldMesh->Allocator() )
|
||||
: myMeshData( theOldMesh ),
|
||||
myCircles ( theVertices.Length(), theOldMesh->Allocator() )
|
||||
{
|
||||
myMeshData = theOldMesh;
|
||||
if ( theVertices.Length() > 2 )
|
||||
Init( theVertices );
|
||||
}
|
||||
@@ -110,9 +109,9 @@ BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
BRepMesh_Delaun::BRepMesh_Delaun(
|
||||
const Handle( BRepMesh_DataStructureOfDelaun )& theOldMesh,
|
||||
BRepMesh::Array1OfInteger& theVertexIndices)
|
||||
: myCircles( theVertexIndices.Length(), theOldMesh->Allocator() )
|
||||
: myMeshData( theOldMesh ),
|
||||
myCircles ( theVertexIndices.Length(), theOldMesh->Allocator() )
|
||||
{
|
||||
myMeshData = theOldMesh;
|
||||
if ( theVertexIndices.Length() > 2 )
|
||||
{
|
||||
Bnd_Box2d aBox;
|
||||
|
Reference in New Issue
Block a user