X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAdvApprox%2FAdvApprox_ApproxAFunction.cxx;h=33d45ff2d1c1d22c7fd31c71f8daf81afedef1a3;hb=9775fa6110885e0afde1c68f4a078a0766cb5521;hpb=0c63f2f8b922bc36025a61eed81ca221fdeb37e4 diff --git a/src/AdvApprox/AdvApprox_ApproxAFunction.cxx b/src/AdvApprox/AdvApprox_ApproxAFunction.cxx index 65cf6203b1..33d45ff2d1 100644 --- a/src/AdvApprox/AdvApprox_ApproxAFunction.cxx +++ b/src/AdvApprox/AdvApprox_ApproxAFunction.cxx @@ -459,7 +459,7 @@ void AdvApprox_ApproxAFunction::Approximation( Continuity = GeomAbs_C2 ; break ; default: - Standard_ConstructionError::Raise(); + throw Standard_ConstructionError(); } //--------------------- Choix du nombre de points ---------------------- @@ -683,7 +683,7 @@ void AdvApprox_ApproxAFunction::Perform(const Standard_Integer Num1DSS, myLast < myFirst || myMaxDegree < 1 || myMaxSegments < 0) - Standard_ConstructionError::Raise(); + throw Standard_ConstructionError(); if (myMaxDegree > 14) { myMaxDegree = 14 ; } @@ -717,7 +717,7 @@ void AdvApprox_ApproxAFunction::Perform(const Standard_Integer Num1DSS, ContinuityOrder = 2 ; break ; default: - Standard_ConstructionError::Raise(); + throw Standard_ConstructionError(); } Standard_Real ApproxStartEnd[2] ; Standard_Integer NumMaxCoeffs = Max(myMaxDegree + 1, 2 * ContinuityOrder + 2); @@ -1019,7 +1019,7 @@ Handle(TColStd_HArray1OfReal) if (D <= 0 || D > 3) { - Standard_OutOfRange::Raise() ; + throw Standard_OutOfRange() ; } switch (D) { case 1: @@ -1059,7 +1059,7 @@ Handle(TColStd_HArray1OfReal) if (D <= 0 || D > 3) { - Standard_OutOfRange::Raise() ; + throw Standard_OutOfRange() ; } switch (D) { case 1: