1
0
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:
ski
2017-02-02 16:35:21 +03:00
committed by apn
parent 0c63f2f8b9
commit 9775fa6110
1146 changed files with 4860 additions and 6183 deletions

View File

@@ -451,7 +451,7 @@ static Standard_Boolean FindParameter(const TopoDS_Vertex& V,
}
}
//Standard_NoSuchObject::Raise("BRep_Tool:: no parameter on edge");
//throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
return Standard_False;
}
@@ -1644,11 +1644,7 @@ void BRepOffset_MakeOffset::SelfInter(TopTools_MapOfShape& /*Modif*/)
}
#endif
Standard_NotImplemented::Raise();
#ifdef OCCT_DEBUG
if ( ChronBuild) Clock.Show();
#endif
throw Standard_NotImplemented();
}
@@ -3947,7 +3943,7 @@ void TrimEdge(TopoDS_Edge& NE,
gp_Pnt thePoint = BRep_Tool::Pnt(V);
GeomAPI_ProjectPointOnCurve Projector(thePoint, theCurve);
if (Projector.NbPoints() == 0)
Standard_ConstructionError::Raise("BRepOffset_MakeOffset::TrimEdge no projection");
throw Standard_ConstructionError("BRepOffset_MakeOffset::TrimEdge no projection");
U = Projector.LowerDistanceParameter();
}
if (U < UMin) {
@@ -3959,7 +3955,7 @@ void TrimEdge(TopoDS_Edge& NE,
}
//
if (V1.IsNull() || V2.IsNull()) {
Standard_ConstructionError::Raise("BRepOffset_MakeOffset::TrimEdge");
throw Standard_ConstructionError("BRepOffset_MakeOffset::TrimEdge");
}
if (!V1.IsSame(V2)) {
NE.Free( Standard_True );