fix warnings: -Wmaybe-uninitialized
This commit is contained in:
parent
16a23d1694
commit
17a3d1e81f
|
@ -1127,7 +1127,7 @@ bool GEOMUtils::FixShapeTolerance( TopoDS_Shape& shape,
|
||||||
|
|
||||||
bool GEOMUtils::FixShapeCurves( TopoDS_Shape& shape )
|
bool GEOMUtils::FixShapeCurves( TopoDS_Shape& shape )
|
||||||
{
|
{
|
||||||
Standard_Real aT, aTolE, aD, aDMax;
|
Standard_Real aT, aTolE, aD, aDMax = 0.0;
|
||||||
TopExp_Explorer aExpF, aExpE;
|
TopExp_Explorer aExpF, aExpE;
|
||||||
NCollection_DataMap<TopoDS_Edge, Standard_Real, TopTools_ShapeMapHasher> aDMETol;
|
NCollection_DataMap<TopoDS_Edge, Standard_Real, TopTools_ShapeMapHasher> aDMETol;
|
||||||
aExpF.Init(shape, TopAbs_FACE);
|
aExpF.Init(shape, TopAbs_FACE);
|
||||||
|
|
|
@ -1343,7 +1343,7 @@ struct ShapeInfo{
|
||||||
const TopoDS_Shape &wire = it->wire;
|
const TopoDS_Shape &wire = it->wire;
|
||||||
TopoDS_Shape support;
|
TopoDS_Shape support;
|
||||||
bool support_edge;
|
bool support_edge;
|
||||||
double d;
|
double d = 0;
|
||||||
gp_Pnt p;
|
gp_Pnt p;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
bool is_start = false;
|
bool is_start = false;
|
||||||
|
|
|
@ -746,6 +746,7 @@ namespace SketcherGui {
|
||||||
* example, when in lock, horizontal, or vertical constraint modes.
|
* example, when in lock, horizontal, or vertical constraint modes.
|
||||||
*/
|
*/
|
||||||
enum SelType {
|
enum SelType {
|
||||||
|
SelUnknown = 0,
|
||||||
SelVertex = 1,
|
SelVertex = 1,
|
||||||
SelRoot = 2,
|
SelRoot = 2,
|
||||||
SelEdge = 4,
|
SelEdge = 4,
|
||||||
|
@ -866,7 +867,7 @@ public:
|
||||||
selIdPair.GeoId = Constraint::GeoUndef;
|
selIdPair.GeoId = Constraint::GeoUndef;
|
||||||
selIdPair.PosId = Sketcher::none;
|
selIdPair.PosId = Sketcher::none;
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
SelType newSelType;
|
SelType newSelType = SelUnknown;
|
||||||
|
|
||||||
//For each SelType allowed, check if button is released there and assign it to selIdPair
|
//For each SelType allowed, check if button is released there and assign it to selIdPair
|
||||||
int VtId = sketchgui->getPreselectPoint();
|
int VtId = sketchgui->getPreselectPoint();
|
||||||
|
@ -4318,7 +4319,8 @@ void CmdSketcherConstrainAngle::activated(int iMsg)
|
||||||
const Part::GeomLineSegment *lineSeg2 = static_cast<const Part::GeomLineSegment*>(geom2);
|
const Part::GeomLineSegment *lineSeg2 = static_cast<const Part::GeomLineSegment*>(geom2);
|
||||||
|
|
||||||
// find the two closest line ends
|
// find the two closest line ends
|
||||||
Sketcher::PointPos PosId1,PosId2;
|
Sketcher::PointPos PosId1 = Sketcher::none;
|
||||||
|
Sketcher::PointPos PosId2 = Sketcher::none;
|
||||||
Base::Vector3d p1[2], p2[2];
|
Base::Vector3d p1[2], p2[2];
|
||||||
p1[0] = lineSeg1->getStartPoint();
|
p1[0] = lineSeg1->getStartPoint();
|
||||||
p1[1] = lineSeg1->getEndPoint();
|
p1[1] = lineSeg1->getEndPoint();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user