mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00: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:
@@ -28,14 +28,12 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_SectionLaw,MMgt_TShared)
|
||||
|
||||
Standard_Boolean GeomFill_SectionLaw::D1(const Standard_Real,TColgp_Array1OfPnt&,TColgp_Array1OfVec&,TColStd_Array1OfReal&,TColStd_Array1OfReal& )
|
||||
{
|
||||
Standard_NotImplemented::Raise("GeomFill_SectionLaw::D1");
|
||||
return 0;
|
||||
throw Standard_NotImplemented("GeomFill_SectionLaw::D1");
|
||||
}
|
||||
|
||||
Standard_Boolean GeomFill_SectionLaw::D2(const Standard_Real,TColgp_Array1OfPnt& ,TColgp_Array1OfVec&,TColgp_Array1OfVec&,TColStd_Array1OfReal&,TColStd_Array1OfReal&,TColStd_Array1OfReal&)
|
||||
{
|
||||
Standard_NotImplemented::Raise("GeomFill_SectionLaw::D2");
|
||||
return 0;
|
||||
throw Standard_NotImplemented("GeomFill_SectionLaw::D2");
|
||||
}
|
||||
|
||||
Handle(Geom_BSplineSurface) GeomFill_SectionLaw::BSplineSurface() const
|
||||
@@ -53,13 +51,12 @@ Standard_Boolean GeomFill_SectionLaw::D1(const Standard_Real,TColgp_Array1OfPnt&
|
||||
gp_Pnt GeomFill_SectionLaw::BarycentreOfSurf() const
|
||||
{
|
||||
|
||||
Standard_NotImplemented::Raise("GeomFill_SectionLaw::BarycentreOfSurf");
|
||||
return gp_Pnt(0.0, 0.0, 0.0);
|
||||
throw Standard_NotImplemented("GeomFill_SectionLaw::BarycentreOfSurf");
|
||||
}
|
||||
|
||||
void GeomFill_SectionLaw::GetMinimalWeight(TColStd_Array1OfReal&) const
|
||||
{
|
||||
Standard_NotImplemented::Raise("GeomFill_SectionLaw::GetMinimalWeight");
|
||||
throw Standard_NotImplemented("GeomFill_SectionLaw::GetMinimalWeight");
|
||||
}
|
||||
|
||||
Standard_Boolean GeomFill_SectionLaw::IsConstant(Standard_Real& Error) const
|
||||
@@ -71,8 +68,7 @@ Standard_Boolean GeomFill_SectionLaw::D1(const Standard_Real,TColgp_Array1OfPnt&
|
||||
Handle(Geom_Curve) GeomFill_SectionLaw::ConstantSection() const
|
||||
{
|
||||
Handle(Geom_Curve) C;
|
||||
Standard_DomainError::Raise("GeomFill_SectionLaw::ConstantSection");
|
||||
return C;
|
||||
throw Standard_DomainError("GeomFill_SectionLaw::ConstantSection");
|
||||
}
|
||||
|
||||
Standard_Boolean GeomFill_SectionLaw::IsConicalLaw(Standard_Real& Error) const
|
||||
@@ -85,6 +81,5 @@ Standard_Boolean GeomFill_SectionLaw::D1(const Standard_Real,TColgp_Array1OfPnt&
|
||||
CirclSection(const Standard_Real) const
|
||||
{
|
||||
Handle(Geom_Curve) C;
|
||||
Standard_DomainError::Raise("GeomFill_SectionLaw::CirclSection");
|
||||
return C;
|
||||
throw Standard_DomainError("GeomFill_SectionLaw::CirclSection");
|
||||
}
|
||||
|
Reference in New Issue
Block a user