Part: Fix several coverity issues:

* CID 350581: Structurally dead code
* CID 350620: Structurally dead code
* CID 350563: Big parameter passed by value
* CID 350552: Uncaught exception
* CID 305193: Uncaught exception
* CID 350556: Uninitialized scalar field
* CID 350579: Uninitialized pointer read
This commit is contained in:
wmayer
2022-03-13 16:06:40 +01:00
parent 81ea374800
commit 15ee1fdd4e
6 changed files with 10 additions and 9 deletions

View File

@@ -663,7 +663,7 @@ Handle(Poly_Polygon3D) Part::Tools::polygonOfEdge(const TopoDS_Edge& edge, TopLo
// helper function to use in getNormal, here we pass the local properties
// of the surface given by the #LProp_SLProps objects
template <typename T>
void getNormalBySLProp(T prop, double u, double v, Standard_Real lastU, Standard_Real lastV,
void getNormalBySLProp(T& prop, double u, double v, Standard_Real lastU, Standard_Real lastV,
const Standard_Real tol, gp_Dir& dir, Standard_Boolean& done)
{
if (prop.D1U().Magnitude() > tol &&