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:
@@ -1512,7 +1512,7 @@ void PLib::Trimming(const Standard_Real U1,
|
||||
|
||||
if (rat) {
|
||||
if(len != WCoefs->Length())
|
||||
Standard_Failure::Raise("PLib::Trimming : nbcoefs/dim != nbweights !!!");
|
||||
throw Standard_Failure("PLib::Trimming : nbcoefs/dim != nbweights !!!");
|
||||
upw = WCoefs->Upper();
|
||||
}
|
||||
len --;
|
||||
@@ -1861,10 +1861,10 @@ void PLib::JacobiParameters(const GeomAbs_Shape ConstraintOrder,
|
||||
case GeomAbs_C1: NivConstr = 1; break;
|
||||
case GeomAbs_C2: NivConstr = 2; break;
|
||||
default:
|
||||
Standard_ConstructionError::Raise("Invalid ConstraintOrder");
|
||||
throw Standard_ConstructionError("Invalid ConstraintOrder");
|
||||
}
|
||||
if (MaxDegree < 2*NivConstr+1)
|
||||
Standard_ConstructionError::Raise("Invalid MaxDegree");
|
||||
throw Standard_ConstructionError("Invalid MaxDegree");
|
||||
|
||||
if (Code >= 1)
|
||||
WorkDegree = MaxDegree + 9;
|
||||
@@ -1892,7 +1892,7 @@ void PLib::JacobiParameters(const GeomAbs_Shape ConstraintOrder,
|
||||
else if (WorkDegree < NDEG61)
|
||||
IPMIN=NDEG61;
|
||||
else
|
||||
Standard_ConstructionError::Raise("Invalid MaxDegree");
|
||||
throw Standard_ConstructionError("Invalid MaxDegree");
|
||||
// ---> Nbre de points voulus.
|
||||
Standard_Integer IWANT=0;
|
||||
switch (Code) {
|
||||
@@ -1906,7 +1906,7 @@ void PLib::JacobiParameters(const GeomAbs_Shape ConstraintOrder,
|
||||
case 3: IWANT=NDEG50; break;
|
||||
case 4: IWANT=NDEG61; break;
|
||||
default:
|
||||
Standard_ConstructionError::Raise("Invalid Code");
|
||||
throw Standard_ConstructionError("Invalid Code");
|
||||
}
|
||||
//--> NbGaussPoints est le nombre de points de discretisation de la fonction,
|
||||
// il ne peut prendre que les valeurs 8,10,15,20,25,30,40,50 ou 61.
|
||||
@@ -1928,7 +1928,7 @@ void PLib::JacobiParameters(const GeomAbs_Shape ConstraintOrder,
|
||||
case GeomAbs_C1: NivConstr = 1; break;
|
||||
case GeomAbs_C2: NivConstr = 2; break;
|
||||
default:
|
||||
Standard_ConstructionError::Raise("Invalid ConstraintOrder");
|
||||
throw Standard_ConstructionError("Invalid ConstraintOrder");
|
||||
}
|
||||
return NivConstr;
|
||||
}
|
||||
@@ -1946,7 +1946,7 @@ void PLib::JacobiParameters(const GeomAbs_Shape ConstraintOrder,
|
||||
case 1: ConstraintOrder = GeomAbs_C1; break;
|
||||
case 2: ConstraintOrder = GeomAbs_C2; break;
|
||||
default:
|
||||
Standard_ConstructionError::Raise("Invalid NivConstr");
|
||||
throw Standard_ConstructionError("Invalid NivConstr");
|
||||
}
|
||||
return ConstraintOrder;
|
||||
}
|
||||
|
@@ -45,11 +45,11 @@ const Standard_Integer UNDEFINED=-999;
|
||||
case GeomAbs_C1: myNivConstr = 1; break;
|
||||
case GeomAbs_C2: myNivConstr = 2; break;
|
||||
default:
|
||||
Standard_ConstructionError::Raise("Invalid ConstraintOrder");
|
||||
throw Standard_ConstructionError("Invalid ConstraintOrder");
|
||||
}
|
||||
myDegree = myWorkDegree - 2*(myNivConstr+1);
|
||||
if (myDegree > 30)
|
||||
Standard_ConstructionError::Raise("Invalid Degree");
|
||||
throw Standard_ConstructionError("Invalid Degree");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -66,7 +66,7 @@ void PLib_JacobiPolynomial::Points(const Standard_Integer NbGaussPoints,
|
||||
NbGaussPoints != NDEG40 && NbGaussPoints != NDEG50 &&
|
||||
NbGaussPoints != NDEG61) ||
|
||||
NbGaussPoints <= myDegree)
|
||||
Standard_ConstructionError::Raise("Invalid NbGaussPoints");
|
||||
throw Standard_ConstructionError("Invalid NbGaussPoints");
|
||||
|
||||
math_Vector DecreasingPoints(1,NbGaussPoints);
|
||||
|
||||
|
Reference in New Issue
Block a user