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 716a27de25
commit edd346cc3d
6 changed files with 10 additions and 9 deletions

View File

@@ -238,9 +238,6 @@ PyObject* GeometrySurfacePy::getDN(PyObject *args)
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return nullptr;
}
PyErr_SetString(PartExceptionOCCError, "Geometry is not a surface");
return nullptr;
}
PyObject* GeometrySurfacePy::value(PyObject *args)