mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023604: Uninitialized variables in debug mode
Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code.
This commit is contained in:
@@ -1102,11 +1102,7 @@ void AIS::ComputeLengthBetweenCurvilinearFaces( const TopoDS_Face & FirstFa
|
||||
{
|
||||
GeomAPI_ProjectPointOnSurf aProjector;
|
||||
Quantity_Parameter U, V;
|
||||
#ifndef DEB
|
||||
TopAbs_State State = TopAbs_UNKNOWN;
|
||||
#else
|
||||
TopAbs_State State;
|
||||
#endif
|
||||
if (AutomaticPos)
|
||||
{
|
||||
TopExp_Explorer Explo( FirstFace, TopAbs_VERTEX );
|
||||
@@ -1147,11 +1143,7 @@ void AIS::ComputeLengthBetweenCurvilinearFaces( const TopoDS_Face & FirstFa
|
||||
DirAttach = gp_Dir( D1U ^ D1V );
|
||||
|
||||
aProjector.Init( FirstAttach, SecondSurf );
|
||||
#ifndef DEB
|
||||
Standard_Integer Index = 0;
|
||||
#else
|
||||
Standard_Integer Index;
|
||||
#endif
|
||||
Quantity_Length MinDist = RealLast();
|
||||
gp_Dir LocalDir;
|
||||
for (Standard_Integer i = 1; i <= aProjector.NbPoints(); i++)
|
||||
|
@@ -651,11 +651,7 @@ static Standard_Boolean CircleFromPlanarFace(const TopoDS_Face& aFace,
|
||||
void AIS_DiameterDimension::ComputeOnePlanarFaceDiameter(const Handle(Prs3d_Presentation)& aPresentation)
|
||||
{
|
||||
gp_Pnt curPos ;
|
||||
#ifndef DEB
|
||||
Standard_Real parfirst =0., parend =0.;
|
||||
#else
|
||||
Standard_Real parfirst, parend;
|
||||
#endif
|
||||
if (myAutomaticPosition) {
|
||||
Handle(Geom_Curve) curv;
|
||||
gp_Pnt ptfirst,ptend;
|
||||
|
Reference in New Issue
Block a user