1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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:
ski
2017-02-02 16:35:21 +03:00
committed by apn
parent 0c63f2f8b9
commit 9775fa6110
1146 changed files with 4860 additions and 6183 deletions

View File

@@ -104,7 +104,7 @@
case GeomAbs_Cone: quad1.SetValue(HS1->Surface().Cone()); break;
case GeomAbs_Sphere: quad1.SetValue(HS1->Surface().Sphere()); break;
case GeomAbs_Torus: quad1.SetValue(HS1->Surface().Torus()); break;
default: Standard_ConstructionError::Raise("GeomInt_IntSS::MakeCurve");
default: throw Standard_ConstructionError("GeomInt_IntSS::MakeCurve");
}
}

View File

@@ -679,7 +679,7 @@ void Parameters(const Handle(GeomAdaptor_HSurface)& myHS1,
quad1.SetValue(myHS1->Surface().Torus());
break;
default:
Standard_ConstructionError::Raise("GeomInt_LineConstructor::Parameters");
throw Standard_ConstructionError("GeomInt_LineConstructor::Parameters");
}
quad1.Parameters(Ptref,U1,V1);
}
@@ -710,7 +710,7 @@ void GLinePoint(const IntPatch_IType typl,
aP = ElCLib::Value(aT, GLine->Parabola());
break;
default:
Standard_ConstructionError::Raise("GeomInt_LineConstructor::Parameters");
throw Standard_ConstructionError("GeomInt_LineConstructor::Parameters");
}
}

View File

@@ -62,7 +62,7 @@ inline Standard_Boolean GeomInt_LineConstructor::IsDone () const
inline Standard_Integer GeomInt_LineConstructor::NbParts () const
{
if (!done) { StdFail_NotDone::Raise(); }
if (!done) { throw StdFail_NotDone(); }
return (seqp.Length() / 2);
}
@@ -75,7 +75,7 @@ inline void GeomInt_LineConstructor::Part (const Standard_Integer I,
Standard_Real& WFirst,
Standard_Real& WLast) const
{
if (!done) { StdFail_NotDone::Raise(); }
if (!done) { throw StdFail_NotDone(); }
WFirst = seqp(2*I-1);
WLast = seqp(2*I);
}

View File

@@ -47,10 +47,6 @@ public:
DEFINE_STANDARD_ALLOC
//! Raises Construction Error
Standard_EXPORT GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox();
Standard_EXPORT GeomInt_TheFunctionOfTheInt2SOfThePrmPrmSvSurfacesOfWLApprox(const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2);
Standard_EXPORT Standard_Integer NbVariables() const;

View File

@@ -49,10 +49,6 @@ public:
DEFINE_STANDARD_ALLOC
//! Raises Construction Error
Standard_EXPORT GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox();
//! compute the solution point with the close point
Standard_EXPORT GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox(const TColStd_Array1OfReal& Param, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const Standard_Real TolTangency);