mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-25 08:07:05 +08:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
(aP1.XYZ()-aP2.XYZ()).Coord(theF(anIndF), theF(anIndF+1), theF(anIndF+2));
|
||||
}
|
||||
catch(Standard_Failure)
|
||||
catch(Standard_Failure const&)
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
aD2[mySeamCoordInd].Reversed().Coord(theD(anIndRD, anIndCD+2),
|
||||
theD(anIndRD+1, anIndCD+2), theD(anIndRD+2, anIndCD+2));
|
||||
}
|
||||
catch(Standard_Failure)
|
||||
catch(Standard_Failure const&)
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user