App: Coverity fixes
This commit is contained in:
committed by
Benjamin Nauck
parent
eedb743959
commit
09cdcee1bb
@@ -421,10 +421,8 @@ bool GeoFeatureGroupExtension::extensionGetSubObject(DocumentObject*& ret,
|
||||
}
|
||||
}
|
||||
if (ret) {
|
||||
if (dot) {
|
||||
++dot;
|
||||
}
|
||||
if (dot && *dot && !ret->hasExtension(App::LinkBaseExtension::getExtensionClassTypeId())
|
||||
++dot;
|
||||
if (*dot && !ret->hasExtension(App::LinkBaseExtension::getExtensionClassTypeId())
|
||||
&& !ret->hasExtension(App::GeoFeatureGroupExtension::getExtensionClassTypeId())) {
|
||||
// Consider this
|
||||
// Body
|
||||
@@ -451,7 +449,7 @@ bool GeoFeatureGroupExtension::extensionGetSubObject(DocumentObject*& ret,
|
||||
*mat *=
|
||||
const_cast<GeoFeatureGroupExtension*>(this)->placement().getValue().toMatrix();
|
||||
}
|
||||
ret = ret->getSubObject(dot ? dot : "", pyObj, mat, true, depth + 1);
|
||||
ret = ret->getSubObject(dot, pyObj, mat, true, depth + 1);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user