improve whitespaces

This commit is contained in:
wmayer
2017-01-21 19:12:56 +01:00
parent 69857f37f7
commit f3f7b01202
5 changed files with 139 additions and 135 deletions

View File

@@ -210,14 +210,14 @@ Py::List DocumentObjectPy::getInList(void) const
Py::List DocumentObjectPy::getInListRecursive(void) const
{
Py::List ret;
try{
try {
std::vector<DocumentObject*> list = getDocumentObjectPtr()->getInListRecursive();
for (std::vector<DocumentObject*>::iterator It = list.begin(); It != list.end(); ++It)
ret.append(Py::Object((*It)->getPyObject(), true));
}catch (const Base::Exception& e) {
}
catch (const Base::Exception& e) {
throw Py::IndexError(e.what());
}
return ret;
@@ -238,7 +238,6 @@ Py::List DocumentObjectPy::getOutListRecursive(void) const
{
Py::List ret;
try {
std::vector<DocumentObject*> list = getDocumentObjectPtr()->getOutListRecursive();
// creat the python list for the output