mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
@@ -263,7 +263,7 @@ Standard_Integer Graphic3d_ArrayOfPrimitives::AddBound (const Standard_Integer t
|
||||
Standard_Integer anIndex = myBounds->NbBounds;
|
||||
if (anIndex >= myMaxBounds)
|
||||
{
|
||||
Standard_OutOfRange::Raise ("TOO many BOUNDS");
|
||||
throw Standard_OutOfRange("TOO many BOUNDS");
|
||||
}
|
||||
|
||||
myBounds->Bounds[anIndex] = theEdgeNumber;
|
||||
@@ -289,7 +289,7 @@ Standard_Integer Graphic3d_ArrayOfPrimitives::AddBound (const Standard_Integer t
|
||||
Standard_Integer anIndex = myBounds->NbBounds;
|
||||
if (anIndex >= myMaxBounds)
|
||||
{
|
||||
Standard_OutOfRange::Raise ("TOO many BOUND");
|
||||
throw Standard_OutOfRange("TOO many BOUND");
|
||||
}
|
||||
|
||||
myBounds->Bounds[anIndex] = theEdgeNumber;
|
||||
@@ -308,14 +308,14 @@ Standard_Integer Graphic3d_ArrayOfPrimitives::AddEdge (const Standard_Integer th
|
||||
Standard_Integer anIndex = myIndices->NbElements;
|
||||
if (anIndex >= myMaxEdges)
|
||||
{
|
||||
Standard_OutOfRange::Raise ("TOO many EDGE");
|
||||
throw Standard_OutOfRange("TOO many EDGE");
|
||||
}
|
||||
|
||||
Standard_Integer aVertIndex = theVertexIndex - 1;
|
||||
if (theVertexIndex <= 0
|
||||
|| aVertIndex >= myMaxVertexs)
|
||||
{
|
||||
Standard_OutOfRange::Raise ("BAD EDGE vertex index");
|
||||
throw Standard_OutOfRange("BAD EDGE vertex index");
|
||||
}
|
||||
|
||||
myIndices->SetIndex (anIndex, aVertIndex);
|
||||
@@ -349,7 +349,7 @@ void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer theInde
|
||||
if (theIndex < 1
|
||||
|| theIndex > myMaxVertexs)
|
||||
{
|
||||
Standard_OutOfRange::Raise ("BAD VERTEX index");
|
||||
throw Standard_OutOfRange("BAD VERTEX index");
|
||||
}
|
||||
|
||||
if (myVCol != 0)
|
||||
|
Reference in New Issue
Block a user