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:
@@ -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;
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user