0024059: Eliminate compiler warning C4701 in MSVC++ with warning level 4

Removing pPotentially uninitialized local variable
Got rid of most of warnings C4701: Potentially uninitialized local variable
Removed redundant variable definitions.
Refactored a part of AppParCurves_ResolConstraint CTOR.
Replaced 0. to Precision::Confusion for tolerance vars;
Changed values for min and max parameter vars;
Got rid of redundant variables' initialization.
This commit is contained in:
omy
2013-08-22 12:07:14 +04:00
committed by bugmaster
parent 99d99a6db2
commit 1d47d8d066
196 changed files with 671 additions and 817 deletions

View File

@@ -814,7 +814,7 @@ void BRepOffsetAPI_MiddlePath::Build()
{
gp_Ax1 theAxis;
gp_Dir theDir1, theDir2;
Standard_Real theAngle;
Standard_Real theAngle = 0.;
gp_Vec theTangent;
Standard_Boolean SimilarArcs = Standard_True;
for (j = 1; j <= myPaths.Length(); j++)
@@ -890,7 +890,12 @@ void BRepOffsetAPI_MiddlePath::Build()
theAx2 = gp_Ax2(theCenterOfCirc, theAxis.Direction(), Vec1);
theCircle = GC_MakeCircle(theAx2, Vec1.Magnitude());
}
MidEdges(i) = BRepLib_MakeEdge(theCircle, 0., theAngle);
BRepLib_MakeEdge aME (theCircle, 0., theAngle);
aME.Build();
MidEdges(i) = aME.IsDone() ?
aME.Shape() :
TopoDS_Edge();
}
}
}