Code cleanup: use 'const' for arrays (python)
[blender.git] / source / blender / python / intern / bpy_rna_callback.c
index 9aefe5a733f18fd887a5f64ca2231208d31d1b8e..87c3a6eb4ef06d0b9ee7f7c4ff1af7479c1c6794 100644 (file)
@@ -182,8 +182,8 @@ PyObject *pyrna_callback_classmethod_add(PyObject *UNUSED(self), PyObject *args)
        void *handle;
        PyObject *cls;
        PyObject *cb_func, *cb_args;
-       char *cb_regiontype_str;
-       char *cb_event_str;
+       const char *cb_regiontype_str;
+       const char *cb_event_str;
        int cb_event;
        int cb_regiontype;
        StructRNA *srna;
@@ -248,7 +248,7 @@ PyObject *pyrna_callback_classmethod_remove(PyObject *UNUSED(self), PyObject *ar
        void *handle;
        void *customdata;
        StructRNA *srna;
-       char *cb_regiontype_str;
+       const char *cb_regiontype_str;
        int cb_regiontype;
 
        if (PyTuple_GET_SIZE(args) < 2) {