[#18961] Use const char * where appropriate (2.5)
[blender-staging.git] / source / gameengine / VideoTexture / ImageRender.cpp
index 8fd0a8968f8413f69346dae69e9f2658a967e6f5..0a01ce11a0ef02d7ea21ff921d7b74337f38dd9a 100644 (file)
@@ -282,9 +282,10 @@ static int ImageRender_init (PyObject * pySelf, PyObject * args, PyObject * kwds
        // camera object
        PyObject * camera;
        // parameter keywords
-       static char *kwlist[] = {"sceneObj", "cameraObj", NULL};
+       static const char *kwlist[] = {"sceneObj", "cameraObj", NULL};
        // get parameters
-       if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", kwlist, &scene, &camera))
+       if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO",
+               const_cast<char**>(kwlist), &scene, &camera))
                return -1;
        try
        {
@@ -428,9 +429,10 @@ static int ImageMirror_init (PyObject * pySelf, PyObject * args, PyObject * kwds
     // material of the mirror
     short materialID = 0;
        // parameter keywords
-       static char *kwlist[] = {"scene", "observer", "mirror", "material", NULL};
+       static const char *kwlist[] = {"scene", "observer", "mirror", "material", NULL};
        // get parameters
-       if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOO|h", kwlist, &scene, &observer, &mirror, &materialID))
+       if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOO|h",
+               const_cast<char**>(kwlist), &scene, &observer, &mirror, &materialID))
                return -1;
        try
        {