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:
@@ -161,7 +161,7 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
|
||||
OCC_CATCH_SIGNALS
|
||||
corrected = MyBSpline->RemoveKnot(iknot, newMultiplicity, myTolerance);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
corrected = Standard_False;
|
||||
}
|
||||
}
|
||||
|
@@ -162,7 +162,7 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
|
||||
OCC_CATCH_SIGNALS
|
||||
corrected = MyBSpline->RemoveKnot(iknot, newMultiplicity, myTolerance);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
corrected = Standard_False;
|
||||
}
|
||||
}
|
||||
|
@@ -317,7 +317,7 @@ static Standard_Boolean IsSameDomain(const TopoDS_Face& aFace,
|
||||
|
||||
return anIIInt.TangentFaces();
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user