diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:21:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:15 +0400 |
commit | e73d0f57a32f309433c005c06d6da2048f274c04 (patch) | |
tree | eaa2542b29b5198590b79e1610d511cf0f57275d /source/blender/python/intern/bpy_operator.c | |
parent | 483d8da9bcfa1eeef950ba45633c5fb49fb7f93b (diff) |
Code cleanup: use 'const' for arrays (python)
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index e867aa00958..2c526601fcd 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -65,10 +65,10 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args) { wmOperatorType *ot; - char *opname; + const char *opname; PyObject *context_dict = NULL; /* optional args */ PyObject *context_dict_back; - char *context_str = NULL; + const char *context_str = NULL; PyObject *ret; int context = WM_OP_EXEC_DEFAULT; @@ -139,8 +139,8 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) PointerRNA ptr; int operator_ret = OPERATOR_CANCELLED; - char *opname; - char *context_str = NULL; + const char *opname; + const char *context_str = NULL; PyObject *kw = NULL; /* optional args */ PyObject *context_dict = NULL; /* optional args */ PyObject *context_dict_back; @@ -310,7 +310,7 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args) wmOperatorType *ot; PointerRNA ptr; - char *opname; + const char *opname; PyObject *kw = NULL; /* optional args */ int all_args = 1; int macro_args = 1; |