Cleanup: style, use braces in source/
Automated using clang-tidy.
This commit is contained in:
@@ -105,8 +105,9 @@ static PyObject *ViewVertex_edges_iterator(BPy_ViewVertex *self, PyObject *args,
|
||||
static const char *kwlist[] = {"edge", NULL};
|
||||
PyObject *py_ve;
|
||||
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", (char **)kwlist, &ViewEdge_Type, &py_ve))
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", (char **)kwlist, &ViewEdge_Type, &py_ve)) {
|
||||
return NULL;
|
||||
}
|
||||
ViewEdge *ve = ((BPy_ViewEdge *)py_ve)->ve;
|
||||
ViewVertexInternal::orientedViewEdgeIterator ove_it(self->vv->edgesIterator(ve));
|
||||
return BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator(ove_it, false);
|
||||
@@ -132,8 +133,9 @@ PyDoc_STRVAR(ViewVertex_nature_doc,
|
||||
static PyObject *ViewVertex_nature_get(BPy_ViewVertex *self, void *UNUSED(closure))
|
||||
{
|
||||
Nature::VertexNature nature = self->vv->getNature();
|
||||
if (PyErr_Occurred())
|
||||
if (PyErr_Occurred()) {
|
||||
return NULL;
|
||||
}
|
||||
return BPy_Nature_from_Nature(nature); // return a copy
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user