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:
@@ -58,7 +58,7 @@ inline Standard_Boolean IntStart_PathPoint::IsNew () const {
|
||||
|
||||
inline const TheVertex& IntStart_PathPoint::Vertex () const {
|
||||
|
||||
if (isnew) {Standard_DomainError::Raise ();}
|
||||
if (isnew) {throw Standard_DomainError();}
|
||||
return vtx;
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,7 @@ inline Standard_Boolean IntStart_SearchInside::IsDone () const {
|
||||
|
||||
inline Standard_Integer IntStart_SearchInside::NbPoints () const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return list.Length();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ inline const IntSurf_InteriorPoint& IntStart_SearchInside::Value
|
||||
(const Standard_Integer Index) const
|
||||
|
||||
{
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return list.Value(Index);
|
||||
}
|
||||
|
||||
|
@@ -323,7 +323,7 @@ void BoundedArc (const TheArc& A,
|
||||
|
||||
math_FunctionAllRoots Sol(Func,Echant,EpsX,maxdist,maxdist); //-- TolBoundary,nTolTangency);
|
||||
|
||||
if (!Sol.IsDone()) {Standard_Failure::Raise();}
|
||||
if (!Sol.IsDone()) {throw Standard_Failure();}
|
||||
|
||||
Nbp=Sol.NbPoints();
|
||||
//
|
||||
@@ -335,7 +335,7 @@ void BoundedArc (const TheArc& A,
|
||||
Standard_Real theTol = 5.e-4;
|
||||
math_FunctionAllRoots SolAgain(Func,Echant,EpsX,theTol,theTol); //-- TolBoundary,nTolTangency);
|
||||
|
||||
if (!SolAgain.IsDone()) {Standard_Failure::Raise();}
|
||||
if (!SolAgain.IsDone()) {throw Standard_Failure();}
|
||||
|
||||
Standard_Integer Nbi_again = SolAgain.NbIntervals();
|
||||
|
||||
|
@@ -23,14 +23,14 @@ inline Standard_Boolean IntStart_SearchOnBoundaries::IsDone () const {
|
||||
|
||||
inline Standard_Boolean IntStart_SearchOnBoundaries::AllArcSolution () const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return all;
|
||||
}
|
||||
|
||||
|
||||
inline Standard_Integer IntStart_SearchOnBoundaries::NbPoints () const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return spnt.Length();
|
||||
}
|
||||
|
||||
@@ -38,13 +38,13 @@ inline Standard_Integer IntStart_SearchOnBoundaries::NbPoints () const {
|
||||
inline const IntStart_ThePathPoint& IntStart_SearchOnBoundaries::Point
|
||||
(const Standard_Integer Index) const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return spnt.Value(Index);
|
||||
}
|
||||
|
||||
inline Standard_Integer IntStart_SearchOnBoundaries::NbSegments () const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return sseg.Length();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ inline Standard_Integer IntStart_SearchOnBoundaries::NbSegments () const {
|
||||
inline const IntStart_TheSegment& IntStart_SearchOnBoundaries::Segment
|
||||
(const Standard_Integer Index) const {
|
||||
|
||||
if (!done) {StdFail_NotDone::Raise();}
|
||||
if (!done) {throw StdFail_NotDone();}
|
||||
return sseg.Value(Index);
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,7 @@ inline Standard_Boolean IntStart_Segment::HasFirstPoint () const {
|
||||
|
||||
inline const ThePathPoint& IntStart_Segment::FirstPoint () const {
|
||||
|
||||
if (!hasfp) { Standard_DomainError::Raise(); }
|
||||
if (!hasfp) { throw Standard_DomainError(); }
|
||||
return thefp;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ inline Standard_Boolean IntStart_Segment::HasLastPoint () const {
|
||||
|
||||
inline const ThePathPoint& IntStart_Segment::LastPoint () const {
|
||||
|
||||
if (!haslp) { Standard_DomainError::Raise(); }
|
||||
if (!haslp) { throw Standard_DomainError(); }
|
||||
return thelp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user