mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -114,7 +114,7 @@ static Standard_Boolean EncodeRegul (const TopoDS_Shape& sh)
|
||||
OCC_CATCH_SIGNALS
|
||||
BRepLib::EncodeRegularity (sh,tolang);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
return Standard_False;
|
||||
}
|
||||
return Standard_True;
|
||||
@@ -191,7 +191,7 @@ Handle(Transfer_Binder) IGESToBRep_Actor::Transfer
|
||||
OCC_CATCH_SIGNALS
|
||||
shape = CAS.TransferGeometry(ent);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
shape.Nullify();
|
||||
}
|
||||
}
|
||||
|
@@ -1121,7 +1121,7 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferBSplineCurve
|
||||
BSplineRes->Segment(Udeb, Ufin);
|
||||
res = BSplineRes;
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
Handle(Geom_TrimmedCurve) gtc = new Geom_TrimmedCurve(BSplineRes2,Udeb,Ufin);
|
||||
res = gtc;
|
||||
}
|
||||
|
@@ -293,7 +293,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry
|
||||
OCC_CATCH_SIGNALS
|
||||
res = TransferCurveAndSurface(start);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
SendFail(start, msg1015);
|
||||
}
|
||||
@@ -325,7 +325,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry
|
||||
OCC_CATCH_SIGNALS
|
||||
res = TransferGeometry(stsub);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
res.Nullify();
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
SendFail( st408, msg1015);
|
||||
@@ -368,7 +368,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry
|
||||
OCC_CATCH_SIGNALS
|
||||
item = TransferGeometry(st308->AssociatedEntity(i));
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
item.Nullify();
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
SendFail( st308->AssociatedEntity(i), msg1015);
|
||||
@@ -422,7 +422,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry
|
||||
OCC_CATCH_SIGNALS
|
||||
item = TransferGeometry(st402f1->Entity(i));
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
item.Nullify();
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
SendFail(st402f1->Entity(i),msg1015);
|
||||
@@ -485,7 +485,7 @@ TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry
|
||||
OCC_CATCH_SIGNALS
|
||||
item = TransferGeometry(st402f7->Entity(i));
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
item.Nullify();
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
SendFail(st402f7->Entity(i),msg1015);
|
||||
|
@@ -296,7 +296,7 @@ static Standard_Boolean EncodeRegul (const TopoDS_Shape& sh)
|
||||
OCC_CATCH_SIGNALS
|
||||
BRepLib::EncodeRegularity (sh,tolang);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
return Standard_False;
|
||||
}
|
||||
return Standard_True;
|
||||
@@ -431,7 +431,7 @@ void IGESToBRep_Reader::TransferRoots (const Standard_Boolean onlyvisible)
|
||||
TP.Transfer(ent);
|
||||
shape = TransferBRep::ShapeResult (theProc,ent);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
Message_Msg msg1005("IGES_1005");
|
||||
TF->Send (msg1005, Message_Info);
|
||||
continue;
|
||||
@@ -540,7 +540,7 @@ Standard_Boolean IGESToBRep_Reader::Transfer(const Standard_Integer num)
|
||||
OCC_CATCH_SIGNALS
|
||||
shape = CAS.TransferGeometry (ent);
|
||||
}
|
||||
catch(Standard_Failure) {
|
||||
catch(Standard_Failure const&) {
|
||||
Message_Msg msg1015("IGES_1015");
|
||||
TF->Send (msg1015, Message_Info);
|
||||
exceptionRaised = Standard_True;
|
||||
|
Reference in New Issue
Block a user