Cleanup: remove redundant parenthesis
This commit is contained in:
@@ -7252,7 +7252,7 @@ static void pyrna_subtype_set_rna(PyObject *newclass, StructRNA *srna)
|
||||
PyC_ObSpit("RNA WAS SET - ", RNA_struct_py_type_get(srna));
|
||||
}
|
||||
|
||||
Py_XDECREF(((PyObject *)RNA_struct_py_type_get(srna)));
|
||||
Py_XDECREF((PyObject *)RNA_struct_py_type_get(srna));
|
||||
|
||||
RNA_struct_py_type_set(srna, (void *)newclass); /* Store for later use */
|
||||
|
||||
@@ -8461,7 +8461,7 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
|
||||
|
||||
#undef BPY_REPLACEMENT_STRING
|
||||
|
||||
if (item == NULL && (((flag & PROP_REGISTER_OPTIONAL) != PROP_REGISTER_OPTIONAL))) {
|
||||
if (item == NULL && ((flag & PROP_REGISTER_OPTIONAL) != PROP_REGISTER_OPTIONAL)) {
|
||||
PyErr_Format(PyExc_AttributeError,
|
||||
"expected %.200s, %.200s class to have an \"%.200s\" attribute",
|
||||
class_type,
|
||||
|
||||
Reference in New Issue
Block a user