1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024275: Cppcheck warnings on uninitialized class members

Removed warning of cppcheck on uninitialized class members for non-array cases
New additional compilation warnings on Windows platform from file OSD_Path.cxx were fixed
Warnings about wrong initialization removed
This commit is contained in:
ski
2013-11-14 11:08:41 +04:00
committed by bugmaster
parent e79a94b9a5
commit c24d401753
78 changed files with 285 additions and 102 deletions

View File

@@ -32,13 +32,25 @@ ChFi2d_ChamferAPI::ChFi2d_ChamferAPI()
}
// A constructor accepting a wire consisting of two linear edges.
ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Wire& theWire)
ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Wire& theWire) :
myStart1(0.),
myEnd1(0.),
myStart2(0.),
myEnd2(0.),
myCommonStart1(Standard_False),
myCommonStart2(Standard_False)
{
Init(theWire);
}
// A constructor accepting two linear edges.
ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2)
ChFi2d_ChamferAPI::ChFi2d_ChamferAPI(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2) :
myStart1(0.),
myEnd1(0.),
myStart2(0.),
myEnd2(0.),
myCommonStart1(Standard_False),
myCommonStart2(Standard_False)
{
Init(theEdge1, theEdge2);
}

View File

@@ -149,7 +149,8 @@ class FilletPoint
{
public:
//! Creates a point on a first curve by parameter on this curve.
FilletPoint(Standard_Real theParam) {myParam = theParam;}
FilletPoint(Standard_Real theParam) : myParam2(0.)
{myParam = theParam;}
//! Changes the point position by changing point parameter on the first curve.
void setParam(Standard_Real theParam) {myParam = theParam;}