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

@@ -924,7 +924,7 @@ Standard_Boolean ShapeAnalysis_CheckSmallFace::CheckTwisted (const TopoDS_Face&
angle1 = V11.Angle(V12);
angle2 = V21.Angle(V22);
}
catch (Standard_Failure)
catch (Standard_Failure const&)
{
#ifdef OCCT_DEBUG
cout << "Couldn't compute angle between derivative vectors" <<endl;

View File

@@ -838,7 +838,7 @@ static void AppendControlPoles (TColgp_SequenceOfPnt& seq,
AppendControlPoles(seq,bslp);
done = Standard_True;
}
catch (Standard_Failure) {
catch (Standard_Failure const&) {
}
}
else if ( aBaseCrv->IsKind(STANDARD_TYPE(Geom_BezierCurve))) {
@@ -850,7 +850,7 @@ static void AppendControlPoles (TColgp_SequenceOfPnt& seq,
AppendControlPoles(seq,bz);
done = Standard_True;
}
catch (Standard_Failure) {
catch (Standard_Failure const&) {
}
}
if (!done) {