mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -282,7 +282,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
|
||||
Standard_Boolean sewing_ok = Standard_True;
|
||||
{
|
||||
try { OCC_CATCH_SIGNALS theSewer.Perform(); }
|
||||
catch(Standard_Failure) { sewing_ok = Standard_False; }
|
||||
catch(Standard_Failure const&) { sewing_ok = Standard_False; }
|
||||
}
|
||||
if ( sewing_ok )
|
||||
if (theSewer.SewedShape().IsNull()) sewing_ok = Standard_False;
|
||||
|
@@ -2913,7 +2913,7 @@ static Standard_Boolean TryBendingPCurve (const TopoDS_Edge &E, const TopoDS_Fac
|
||||
|
||||
if ( ! TryNewPCurve ( E, face, c2d, first, last, tol ) ) return Standard_False;
|
||||
}
|
||||
catch ( Standard_Failure ) {
|
||||
catch ( Standard_Failure const& ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << endl;
|
||||
#endif
|
||||
|
@@ -598,7 +598,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
|
||||
done1 = done2 = Standard_True;
|
||||
}
|
||||
}
|
||||
catch ( Standard_Failure )
|
||||
catch ( Standard_Failure const& )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user