fix Coverity issues

This commit is contained in:
wmayer
2016-08-21 14:03:02 +02:00
parent 8cc3ee64e8
commit 0824c5fd3c
29 changed files with 621 additions and 543 deletions

View File

@@ -69,6 +69,7 @@ TaskSelectLinkProperty::TaskSelectLinkProperty(const char *sFilter,App::Property
// property have to be set!
assert(prop);
StartObject = 0;
if (prop->getTypeId().isDerivedFrom(App::PropertyLinkSub::getClassTypeId())) {
LinkSub = dynamic_cast<App::PropertyLinkSub *>(prop);
}