Cleanup: use bool instead of int

This commit is contained in:
2020-09-09 11:10:38 +02:00
parent 916497627c
commit 377a1e3d7b
9 changed files with 40 additions and 39 deletions

View File

@@ -507,7 +507,7 @@ fail:
/** \} */
int BPY_rna_gizmo_module(PyObject *mod_par)
bool BPY_rna_gizmo_module(PyObject *mod_par)
{
static PyMethodDef method_def_array[] = {
/* Gizmo Target Property Define API */
@@ -541,5 +541,5 @@ int BPY_rna_gizmo_module(PyObject *mod_par)
PyModule_AddObject(mod_par, name_prefix, func_inst);
}
return 0;
return false;
}

View File

@@ -24,7 +24,7 @@
extern "C" {
#endif
int BPY_rna_gizmo_module(PyObject *);
bool BPY_rna_gizmo_module(PyObject *);
#ifdef __cplusplus
}