Coverity Fixes

*** CID 153360:  Control flow issues  (UNREACHABLE)
*** CID 153359:  Uninitialized members  (UNINIT_CTOR)
*** CID 153358:  Resource leaks  (RESOURCE_LEAK)
*** CID 153354:  Null pointer dereferences  (FORWARD_NULL)
This commit is contained in:
WandererFan
2016-10-07 08:12:17 -04:00
committed by Yorik van Havre
parent e5045f72e9
commit 10e03f6c64
4 changed files with 11 additions and 6 deletions

View File

@@ -131,10 +131,10 @@ short DrawView::mustExecute() const
Scale.isTouched() ||
ScaleType.isTouched() );
}
if (result) {
if ((bool) result) {
return result;
}
return App::DocumentObject::mustExecute();
return App::DocumentObject::mustExecute();
}
////you must override this in derived class