mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 13:48:57 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user