1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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

@@ -79,7 +79,7 @@ const Handle(TopoDS_TShape)& VrmlData_Box::TShape ()
mySize.X(), mySize.Y(), mySize.Z());
SetTShape (aShell.TShape());
myIsModified = Standard_False;
} catch (Standard_Failure) {
} catch (Standard_Failure const&) {
myTShape.Nullify();
}
}
@@ -159,7 +159,7 @@ const Handle(TopoDS_TShape)& VrmlData_Cone::TShape ()
else
myTShape = aBuilder.Shell().TShape();
myIsModified = Standard_False;
} catch (Standard_Failure) {
} catch (Standard_Failure const&) {
myTShape.Nullify();
}
}
@@ -289,7 +289,7 @@ const Handle(TopoDS_TShape)& VrmlData_Cylinder::TShape ()
aShapeBuilder.AddShellFace (aShell, aBuilder.BottomFace());
myTShape = aShell.TShape();
myIsModified = Standard_False;
} catch (Standard_Failure) {
} catch (Standard_Failure const&) {
myTShape.Nullify();
}
}
@@ -413,7 +413,7 @@ const Handle(TopoDS_TShape)& VrmlData_Sphere::TShape ()
try {
myTShape = BRepPrim_Sphere(myRadius).Shell().TShape();
myIsModified = Standard_False;
} catch (Standard_Failure) {
} catch (Standard_Failure const&) {
myTShape.Nullify();
}
}