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

@@ -247,7 +247,7 @@ void SectionCut::startCutting(bool isInitial)
// refresh documents list
onRefreshCutPBclicked();
App::DocumentObject* anObject;
App::DocumentObject* anObject = nullptr;
std::vector<App::DocumentObjectT>::iterator it;
// lambda function to delete objects