App: [skip ci] whitespace improvements

This commit is contained in:
wmayer
2022-08-24 10:43:56 +02:00
parent a899f078bd
commit 949b43aabb
7 changed files with 47 additions and 51 deletions

View File

@@ -135,7 +135,7 @@ PyObject* DocumentObjectPy::touch(PyObject * args)
Py_Return;
}
auto prop = getDocumentObjectPtr()->getPropertyByName(propName);
if(!prop)
if(!prop)
throw Py::RuntimeError("Property not found");
prop->touch();
Py_Return;
@@ -267,12 +267,11 @@ Py::List DocumentObjectPy::getInListRecursive() const
for (std::vector<DocumentObject*>::iterator It = list.begin(); It != list.end(); ++It)
ret.append(Py::Object((*It)->getPyObject(), true));
}
catch (const Base::Exception& e) {
throw Py::IndexError(e.what());
}
return ret;
return ret;
}
Py::List DocumentObjectPy::getOutList() const