X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FMAT2d%2FMAT2d_CutCurve.cxx;h=2838d2f755f2b2224d173c91b36b3b4d60ac182a;hb=9775fa6110885e0afde1c68f4a078a0766cb5521;hpb=0c63f2f8b922bc36025a61eed81ca221fdeb37e4 diff --git a/src/MAT2d/MAT2d_CutCurve.cxx b/src/MAT2d/MAT2d_CutCurve.cxx index 0415f63594..2838d2f755 100644 --- a/src/MAT2d/MAT2d_CutCurve.cxx +++ b/src/MAT2d/MAT2d_CutCurve.cxx @@ -109,7 +109,7 @@ Standard_Boolean MAT2d_CutCurve::UnModified() const Standard_Integer MAT2d_CutCurve::NbCurves() const { - if (UnModified()) {Standard_OutOfRange::Raise();} + if (UnModified()) {throw Standard_OutOfRange();} return theCurves.Length(); } @@ -123,9 +123,9 @@ Handle(Geom2d_TrimmedCurve) MAT2d_CutCurve::Value ( const Standard_Integer Index) const { - if (UnModified()) {Standard_OutOfRange::Raise();} + if (UnModified()) {throw Standard_OutOfRange();} if ( Index < 1 || Index > theCurves.Length()) { - Standard_OutOfRange::Raise(); + throw Standard_OutOfRange(); } return Handle(Geom2d_TrimmedCurve)::DownCast(theCurves.Value(Index)); }