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:
@@ -719,7 +719,7 @@ static TopoDS_Edge BuildEdge(Handle(Geom_Curve)& C3d,
|
||||
char* Temp = name ;
|
||||
DrawTrSurf::Set(Temp, C3d);
|
||||
// DrawTrSurf::Set(name, C3d);
|
||||
Standard_ConstructionError::Raise("BRepFill_Sweep::BuildEdge");
|
||||
throw Standard_ConstructionError("BRepFill_Sweep::BuildEdge");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1419,7 +1419,7 @@ static TopoDS_Edge BuildEdge(const Handle(Geom_Surface)& S,
|
||||
DrawTrSurf::Set(Temp,Iso);
|
||||
// DrawTrSurf::Set(name,Iso);
|
||||
#endif
|
||||
Standard_ConstructionError::Raise("BRepFill_Sweep::BuildEdge");
|
||||
throw Standard_ConstructionError("BRepFill_Sweep::BuildEdge");
|
||||
}
|
||||
|
||||
E = MkE.Edge();
|
||||
@@ -1903,7 +1903,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
|
||||
char* Temp = name ;
|
||||
DrawTrSurf::Set(Temp,Iso);
|
||||
// DrawTrSurf::Set(name,Iso);
|
||||
Standard_ConstructionError::Raise("BRepFill_Sweep::BuildEdge");
|
||||
throw Standard_ConstructionError("BRepFill_Sweep::BuildEdge");
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user