0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Extrema / Extrema_GExtPC.gxx
index 2ed746d..d6ed889 100644 (file)
@@ -509,8 +509,8 @@ Standard_Boolean Extrema_GExtPC::IsDone() const
 
 Standard_Real Extrema_GExtPC::SquareDistance(const Standard_Integer N) const 
 {
-  if(!mydone) StdFail_NotDone::Raise();
-  if ((N < 1) || (N > mySqDist.Length())) Standard_OutOfRange::Raise();
+  if(!mydone) throw StdFail_NotDone();
+  if ((N < 1) || (N > mySqDist.Length())) throw Standard_OutOfRange();
   return mySqDist.Value(N);
 }
 
@@ -522,7 +522,7 @@ Standard_Real Extrema_GExtPC::SquareDistance(const Standard_Integer N) const
 
 Standard_Integer Extrema_GExtPC::NbExt() const
 {
-  if(!mydone) StdFail_NotDone::Raise();
+  if(!mydone) throw StdFail_NotDone();
   return mySqDist.Length();
 }
 
@@ -534,8 +534,8 @@ Standard_Integer Extrema_GExtPC::NbExt() const
 
 Standard_Boolean Extrema_GExtPC::IsMin(const Standard_Integer N) const
 {
-  if(!mydone) StdFail_NotDone::Raise();
-  if ((N < 1) || (N > mySqDist.Length())) Standard_OutOfRange::Raise();
+  if(!mydone) throw StdFail_NotDone();
+  if ((N < 1) || (N > mySqDist.Length())) throw Standard_OutOfRange();
   return myismin.Value(N);
 }
 
@@ -548,8 +548,8 @@ Standard_Boolean Extrema_GExtPC::IsMin(const Standard_Integer N) const
 
 const ThePOnC & Extrema_GExtPC::Point(const Standard_Integer N) const
 {
-  if(!mydone) StdFail_NotDone::Raise();
-  if ((N < 1) || (N > mySqDist.Length())) Standard_OutOfRange::Raise();
+  if(!mydone) throw StdFail_NotDone();
+  if ((N < 1) || (N > mySqDist.Length())) throw Standard_OutOfRange();
   return mypoint.Value(N);
 }