diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-27 18:41:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-27 18:41:26 +0400 |
commit | 699030ceb698f827fe582bf03a78a44ffc283629 (patch) | |
tree | b9bd3afdc7d131f66460fad247135c3ed155a2ff /source/gameengine/VideoTexture | |
parent | 626f73718631a641fe2d9fe6e2786fc48a341ff7 (diff) |
use const for readonly strings and set some functions to static
Diffstat (limited to 'source/gameengine/VideoTexture')
-rw-r--r-- | source/gameengine/VideoTexture/Texture.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/Texture.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/VideoTexture/Texture.cpp b/source/gameengine/VideoTexture/Texture.cpp index 2066afbbf27..ba9922d455f 100644 --- a/source/gameengine/VideoTexture/Texture.cpp +++ b/source/gameengine/VideoTexture/Texture.cpp @@ -107,7 +107,7 @@ RAS_IPolyMaterial * getMaterial (PyObject *obj, short matID) // get material ID -short getMaterialID (PyObject * obj, char * name) +short getMaterialID(PyObject * obj, const char *name) { // search for material for (short matID = 0;; ++matID) diff --git a/source/gameengine/VideoTexture/Texture.h b/source/gameengine/VideoTexture/Texture.h index 52e1dfeb148..4dce0021509 100644 --- a/source/gameengine/VideoTexture/Texture.h +++ b/source/gameengine/VideoTexture/Texture.h @@ -85,7 +85,7 @@ void loadTexture (unsigned int texId, unsigned int * texture, short * size, RAS_IPolyMaterial * getMaterial (PyObject *obj, short matID); // get material ID -short getMaterialID (PyObject * obj, char * name); +short getMaterialID (PyObject * obj, const char *name); // Exceptions extern ExceptionID MaterialNotAvail; |