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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user