Part: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:37:00 -05:00
parent 3ecd16e0bd
commit 2ecc125497
21 changed files with 150 additions and 75 deletions

View File

@@ -62,7 +62,8 @@ namespace PartGui {
QTreeWidgetItem::setData(column, role, value);
if (role == Qt::CheckStateRole && value.toBool() == true) {
QTreeWidget* tree = this->treeWidget();
if (!tree) return;
if (!tree)
return;
int numChild = tree->topLevelItemCount();
for (int i=0; i<numChild; i++) {
QTreeWidgetItem* item = tree->topLevelItem(i);
@@ -117,7 +118,8 @@ void DlgBooleanOperation::changeEvent(QEvent *e)
void DlgBooleanOperation::slotCreatedObject(const App::DocumentObject& obj)
{
App::Document* activeDoc = App::GetApplication().getActiveDocument();
if (!activeDoc) return;
if (!activeDoc)
return;
App::Document* doc = obj.getDocument();
if (activeDoc == doc && obj.getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) {
observe.push_back(&obj);
@@ -205,9 +207,11 @@ bool DlgBooleanOperation::hasSolids(const App::DocumentObject* obj) const
void DlgBooleanOperation::findShapes()
{
App::Document* activeDoc = App::GetApplication().getActiveDocument();
if (!activeDoc) return;
if (!activeDoc)
return;
Gui::Document* activeGui = Gui::Application::Instance->getDocument(activeDoc);
if (!activeGui) return;
if (!activeGui)
return;
std::vector<App::DocumentObject*> objs = activeDoc->getObjectsOfType
(Part::Feature::getClassTypeId());