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:
@@ -299,10 +299,10 @@ void BRepAlgo_AsDes::Replace(const TopoDS_Shape& OldS,
|
||||
void BRepAlgo_AsDes::Remove(const TopoDS_Shape& SS)
|
||||
{
|
||||
if (down.IsBound(SS)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_AsDes::Remove");
|
||||
throw Standard_ConstructionError(" BRepAlgo_AsDes::Remove");
|
||||
}
|
||||
if (!up.IsBound(SS)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_AsDes::Remove");
|
||||
throw Standard_ConstructionError(" BRepAlgo_AsDes::Remove");
|
||||
}
|
||||
TopTools_ListIteratorOfListOfShape it(up(SS));
|
||||
for (; it.More(); it.Next()) {
|
||||
|
@@ -51,7 +51,7 @@ void BRepAlgo_Image::Bind(const TopoDS_Shape& OldS,
|
||||
const TopoDS_Shape& NewS)
|
||||
{
|
||||
if (down.IsBound(OldS)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::Bind");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::Bind");
|
||||
return;
|
||||
}
|
||||
TopTools_ListOfShape L;
|
||||
@@ -70,7 +70,7 @@ void BRepAlgo_Image::Bind(const TopoDS_Shape& OldS,
|
||||
const TopTools_ListOfShape& L)
|
||||
{
|
||||
if (HasImage(OldS)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::Bind");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::Bind");
|
||||
return;
|
||||
}
|
||||
TopTools_ListIteratorOfListOfShape it(L);
|
||||
@@ -102,7 +102,7 @@ void BRepAlgo_Image::Clear()
|
||||
void BRepAlgo_Image::Add(const TopoDS_Shape& OldS, const TopoDS_Shape& NewS)
|
||||
{
|
||||
if (!HasImage(OldS)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::Add");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::Add");
|
||||
}
|
||||
down(OldS).Append(NewS);
|
||||
up.Bind(NewS,OldS);
|
||||
@@ -131,7 +131,7 @@ void BRepAlgo_Image::Add(const TopoDS_Shape& OldS,
|
||||
void BRepAlgo_Image::Remove(const TopoDS_Shape& S)
|
||||
{
|
||||
if (!up.IsBound(S)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::Remove");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::Remove");
|
||||
}
|
||||
const TopoDS_Shape& OldS = up(S);
|
||||
TopTools_ListOfShape& L = down(OldS);
|
||||
@@ -176,7 +176,7 @@ Standard_Boolean BRepAlgo_Image::IsImage(const TopoDS_Shape& S) const
|
||||
const TopoDS_Shape& BRepAlgo_Image::ImageFrom(const TopoDS_Shape& S) const
|
||||
{
|
||||
if (!up.IsBound(S)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::ImageFrom");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::ImageFrom");
|
||||
}
|
||||
return up(S);
|
||||
}
|
||||
@@ -190,7 +190,7 @@ const TopoDS_Shape& BRepAlgo_Image::Root(const TopoDS_Shape& S)
|
||||
const
|
||||
{
|
||||
if (!up.IsBound(S)) {
|
||||
Standard_ConstructionError::Raise(" BRepAlgo_Image::FirstImageFrom");
|
||||
throw Standard_ConstructionError(" BRepAlgo_Image::FirstImageFrom");
|
||||
}
|
||||
|
||||
TopoDS_Shape S1 = up(S);
|
||||
|
Reference in New Issue
Block a user