mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -328,10 +328,8 @@ Standard_Real IntCurve_IConicTool::FindParameter(const gp_Pnt2d& P) const {
|
||||
,P);
|
||||
break;
|
||||
}
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return(Param);
|
||||
|
@@ -83,10 +83,8 @@ void IntCurve_PConicTool::D1(const IntCurve_PConic& PConic,
|
||||
ElCLib::HyperbolaD1(U,PConic.Axis2(),PConic.Param1(),
|
||||
PConic.Param2(),Pt,Tan);
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,10 +119,8 @@ void IntCurve_PConicTool::D2(const IntCurve_PConic& PConic,
|
||||
ElCLib::HyperbolaD2(U,PConic.Axis2(),PConic.Param1(),
|
||||
PConic.Param2(),Pt,Tan,Norm);
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -70,10 +70,8 @@ Standard_Real IntCurve_ProjectOnPConicTool::FindParameter
|
||||
,ThePConic.Param2(),P);
|
||||
break;
|
||||
}
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
if(ParamInf!=ParamSup) {
|
||||
if(Param<ParamInf) return(ParamInf);
|
||||
@@ -122,10 +120,8 @@ Standard_Real IntCurve_ProjectOnPConicTool::FindParameter
|
||||
,ThePConic.Param2(),P);
|
||||
break;
|
||||
}
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return(Param);
|
||||
|
Reference in New Issue
Block a user