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:
@@ -108,7 +108,7 @@ TopoDS_Shape ShapeCustom::ApplyModifier (const TopoDS_Shape &S,
|
||||
OCC_CATCH_SIGNALS
|
||||
result = MD.ModifiedShape( current );
|
||||
}
|
||||
catch (Standard_NoSuchObject)
|
||||
catch (Standard_NoSuchObject const&)
|
||||
{
|
||||
// the sub shape isn't in the map
|
||||
result.Nullify();
|
||||
|
@@ -174,7 +174,7 @@ Standard_Boolean ShapeCustom_Curve2d::SimplifyBSpline2d (Handle(Geom2d_BSplineCu
|
||||
aMult-1,
|
||||
theTolerance);
|
||||
}
|
||||
catch(Standard_Failure)
|
||||
catch(Standard_Failure const&)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user