Fix scan coverity issues:

CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
This commit is contained in:
wmayer
2018-11-13 16:47:58 +01:00
parent 735b0a18b9
commit a7094210f8
7 changed files with 33 additions and 26 deletions

View File

@@ -1283,7 +1283,11 @@ Document::~Document()
Console().Log("-App::Document: %s %p\n",getName(), this);
#endif
clearUndos();
try {
clearUndos();
}
catch (const boost::exception&) {
}
std::map<std::string,DocumentObject*>::iterator it;