Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-16 19:47:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-16 19:47:41 +0300
commitaefe9be5db3f767c343bae56eb49621a78b7d5b2 (patch)
tree528f363100f80b47f15d265a23499eae781dbe50 /source/gameengine/VideoTexture/Texture.cpp
parented540dd1f17eb4e8e81068509ffc93933a548aef (diff)
[#18961] Use const char * where appropriate (2.5)
from Sean Bartell (wtachi) added own changes bpy_props.c
Diffstat (limited to 'source/gameengine/VideoTexture/Texture.cpp')
-rw-r--r--source/gameengine/VideoTexture/Texture.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp
index 09c95b929c5..f59b92409f5 100644
--- a/source/gameengine/VideoTexture/Texture.cpp
+++ b/source/gameengine/VideoTexture/Texture.cpp
@@ -186,11 +186,12 @@ int Texture_init (Texture *self, PyObject *args, PyObject *kwds)
// texture object with shared texture ID
Texture * texObj = NULL;
- static char *kwlist[] = {"gameObj", "materialID", "textureID", "textureObj", NULL};
+ static const char *kwlist[] = {"gameObj", "materialID", "textureID", "textureObj", NULL};
// get parameters
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|hhO!", kwlist, &obj, &matID,
- &texID, &TextureType, &texObj))
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|hhO!",
+ const_cast<char**>(kwlist), &obj, &matID, &texID, &TextureType,
+ &texObj))
return -1;
// if parameters are available