Cleanup: Use const for RNA EnumPropertyItem args

Practically all access to enum data is read-only.
This commit is contained in:
2017-10-18 15:07:26 +11:00
parent 92611dada6
commit ab7ebf2b10
181 changed files with 1405 additions and 1366 deletions

View File

@@ -186,14 +186,17 @@ int pyrna_pydict_to_props(PointerRNA *ptr, PyObject *kw, const bool all_args, co
PyObject *pyrna_prop_to_py(PointerRNA *ptr, PropertyRNA *prop);
unsigned int *pyrna_set_to_enum_bitmap(
struct EnumPropertyItem *items, PyObject *value,
const struct EnumPropertyItem *items, PyObject *value,
int type_size, bool type_convert_sign,
int bitmap_size,
const char *error_prefix);
PyObject *pyrna_enum_bitfield_to_py(struct EnumPropertyItem *items, int value);
int pyrna_set_to_enum_bitfield(EnumPropertyItem *items, PyObject *value, int *r_value, const char *error_prefix);
PyObject *pyrna_enum_bitfield_to_py(
const struct EnumPropertyItem *items, int value);
int pyrna_set_to_enum_bitfield(
const struct EnumPropertyItem *items, PyObject *value, int *r_value, const char *error_prefix);
int pyrna_enum_value_from_id(EnumPropertyItem *item, const char *identifier, int *value, const char *error_prefix);
int pyrna_enum_value_from_id(
const EnumPropertyItem *item, const char *identifier, int *value, const char *error_prefix);
int pyrna_deferred_register_class(struct StructRNA *srna, PyTypeObject *py_class);