[PD] remove superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-17 15:32:23 +02:00
parent ac6235c577
commit 16b25c5dab
17 changed files with 29 additions and 29 deletions

View File

@@ -505,7 +505,7 @@ void ViewProviderBody::dropObject(App::DocumentObject* obj)
e.ReportException();
}
}
else if (body->BaseFeature.getValue() == nullptr) {
else if (!body->BaseFeature.getValue()) {
body->BaseFeature.setValue(obj);
}