mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -2069,7 +2069,7 @@ static const Standard_Real IMatrix[] = {
|
||||
void InvMMatrix(const Standard_Integer classe,
|
||||
math_Matrix& InvM)
|
||||
{
|
||||
if (classe > 24) Standard_DimensionError::Raise("InvMMatrix: classe > 24");
|
||||
if (classe > 24) throw Standard_DimensionError("InvMMatrix: classe > 24");
|
||||
Standard_Integer i, j, k = 0, Som = 0;
|
||||
for (i = 2; i < classe; i++) {
|
||||
Som += (i)*(i);
|
||||
|
@@ -414,7 +414,7 @@ static const Standard_Real IBP[] = {
|
||||
|
||||
void IBPMatrix(const Standard_Integer classe, math_Matrix& IBPMa)
|
||||
{
|
||||
if (classe > 26) Standard_DimensionError::Raise("IBPMatrix: classe > 26");
|
||||
if (classe > 26) throw Standard_DimensionError("IBPMatrix: classe > 26");
|
||||
// math_Matrix IBPMa(1, classe-2, 1, classe-2);
|
||||
Standard_Integer i, j, k = 0, Som = 0;
|
||||
for (i = 1; i < classe-2; i++) {
|
||||
|
@@ -3276,7 +3276,7 @@ static const Standard_Real BBMatrix[] = {
|
||||
void MMatrix(const Standard_Integer classe,
|
||||
math_Matrix& M)
|
||||
{
|
||||
if (classe > 24) Standard_DimensionError::Raise("MMatrix: classe > 24");
|
||||
if (classe > 24) throw Standard_DimensionError("MMatrix: classe > 24");
|
||||
Standard_Integer i, j, k = 0, Som = 0;
|
||||
for (i = 2; i < classe; i++) {
|
||||
Som += (i)*(i);
|
||||
|
@@ -352,7 +352,7 @@ static const Standard_Real IBT[] = {
|
||||
|
||||
void IBTMatrix(const Standard_Integer classe, math_Matrix& IBTMa)
|
||||
{
|
||||
if (classe > 26) Standard_DimensionError::Raise("IBTMatrix: classe > 26");
|
||||
if (classe > 26) throw Standard_DimensionError("IBTMatrix: classe > 26");
|
||||
// math_Matrix IBTMa(1, classe-4, 1, classe-4);
|
||||
Standard_Integer i, j, k = 0, Som = 0;
|
||||
for (i = 1; i < classe-4; i++) {
|
||||
|
@@ -1234,8 +1234,8 @@ void VBernstein(const Standard_Integer classe,
|
||||
const Standard_Integer nbpoints,
|
||||
math_Matrix& M)
|
||||
{
|
||||
if (classe > 26) Standard_DimensionError::Raise("VBernstein: classe > 26");
|
||||
if (nbpoints > 24) Standard_DimensionError::Raise("VBernstein: nbpoints > 24");
|
||||
if (classe > 26) throw Standard_DimensionError("VBernstein: classe > 26");
|
||||
if (nbpoints > 24) throw Standard_DimensionError("VBernstein: nbpoints > 24");
|
||||
// math_Matrix VB(classe, nbpoints);
|
||||
|
||||
Standard_Integer i, j, k = 0, Som;
|
||||
|
Reference in New Issue
Block a user