1
0
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:
kgv
2019-03-31 23:38:14 +03:00
parent f996b507d8
commit a738b534ca
106 changed files with 210 additions and 213 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -598,7 +598,7 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
done1 = done2 = Standard_True;
}
}
catch ( Standard_Failure )
catch ( Standard_Failure const& )
{
}
}