mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0026937: Eliminate NO_CXX_EXCEPTION macro support
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
This commit is contained in:
@@ -51,7 +51,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||
case GeomAbs_C2: HCS = GeomAbs_CN; break;
|
||||
default: Standard_DomainError::Raise();
|
||||
default: throw Standard_DomainError();
|
||||
}
|
||||
return myHCurve->NbIntervals(HCS);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ void GeomFill_SnglrFunc::SetRatio(const Standard_Real Ratio)
|
||||
case GeomAbs_C0: HCS = GeomAbs_C2; break;
|
||||
case GeomAbs_C1: HCS = GeomAbs_C3; break;
|
||||
case GeomAbs_C2: HCS = GeomAbs_CN; break;
|
||||
default: Standard_DomainError::Raise();
|
||||
default: throw Standard_DomainError();
|
||||
}
|
||||
myHCurve->Intervals(T, HCS);
|
||||
}
|
||||
@@ -153,12 +153,9 @@ gp_Vec GeomFill_SnglrFunc::DN(const Standard_Real U,const Standard_Integer N) co
|
||||
D3(U,C,D1C,D2C,D3C);
|
||||
return D3C;
|
||||
default:
|
||||
Standard_NotImplemented::Raise("Exception: Derivative order is greater than 3. "
|
||||
throw Standard_NotImplemented("Exception: Derivative order is greater than 3. "
|
||||
"Cannot compute of derivative.");
|
||||
}
|
||||
|
||||
return gp_Vec();
|
||||
|
||||
}
|
||||
|
||||
Standard_Real GeomFill_SnglrFunc::Resolution(const Standard_Real R3D) const
|
||||
|
Reference in New Issue
Block a user