[Part] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:36:27 +02:00
parent dfecb337e7
commit 0ff8a02105
7 changed files with 10 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ BodyBase::BodyBase()
BodyBase* BodyBase::findBodyOf(const App::DocumentObject* f)
{
App::Document* doc = f->getDocument();
if (doc != nullptr) {
if (doc) {
std::vector<App::DocumentObject*> bodies = doc->getObjectsOfType(BodyBase::getClassTypeId());
for (std::vector<App::DocumentObject*>::const_iterator b = bodies.begin(); b != bodies.end(); b++) {
BodyBase* body = static_cast<BodyBase*>(*b);