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:
@@ -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);
|
||||
}
|
||||
|
@@ -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;}
|
||||
|
Reference in New Issue
Block a user