0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Geom2dConvert / Geom2dConvert_BSplineCurveKnotSplitting.cxx
index 1d87142..45f390d 100644 (file)
@@ -33,7 +33,7 @@ const Standard_Integer      ContinuityRange
 ) {
 
 
-  if (ContinuityRange < 0)  Standard_RangeError::Raise();
+  if (ContinuityRange < 0)  throw Standard_RangeError();
 
   Standard_Integer FirstIndex = BasisCurve->FirstUKnotIndex();
   Standard_Integer LastIndex  = BasisCurve->LastUKnotIndex();