From e73d0f57a32f309433c005c06d6da2048f274c04 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 27 Apr 2014 00:21:23 +1000 Subject: Code cleanup: use 'const' for arrays (python) --- source/blender/python/intern/bpy_rna.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python/intern/bpy_rna.c') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index cf13efae60e..e0c8df71e4f 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -2171,7 +2171,7 @@ static int pyrna_prop_collection_subscript_str_lib_pair_ptr(BPy_PropertyRNA *sel PointerRNA *r_ptr ) { - char *keyname; + const char *keyname; /* first validate the args, all we know is that they are a tuple */ if (PyTuple_GET_SIZE(key) != 2) { @@ -4883,7 +4883,7 @@ static PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *dat break; case PROP_STRING: { - char *data_ch; + const char *data_ch; PyObject *value_coerce = NULL; const int subtype = RNA_property_subtype(prop); -- cgit v1.2.3