mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -45,11 +45,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
||||
|
||||
Standard_Integer GeomFill_SnglrFunc::NbIntervals(const GeomAbs_Shape S)
|
||||
{
|
||||
#ifndef DEB
|
||||
GeomAbs_Shape HCS=GeomAbs_C0;
|
||||
#else
|
||||
GeomAbs_Shape HCS;
|
||||
#endif
|
||||
switch(S) {
|
||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||
@@ -61,11 +57,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
||||
|
||||
void GeomFill_SnglrFunc::Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S)
|
||||
{
|
||||
#ifndef DEB
|
||||
GeomAbs_Shape HCS=GeomAbs_C0;
|
||||
#else
|
||||
GeomAbs_Shape HCS ;
|
||||
#endif
|
||||
switch(S) {
|
||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||
|
Reference in New Issue
Block a user