[Gui] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 03:34:22 +02:00
parent bd6ffcc7e0
commit 1d95c26e2e
23 changed files with 45 additions and 52 deletions

View File

@@ -3306,7 +3306,7 @@ bool DocumentItem::createNewItem(const Gui::ViewProviderDocumentObject& obj,
pdata->updateChildren(true);
entry.insert(pdata);
}
else if (pdata->rootItem && parent == nullptr) {
else if (pdata->rootItem && !parent) {
Base::Console().Warning("DocumentItem::slotNewObject: Cannot add view provider twice.\n");
return false;
}