use const for readonly strings and set some functions to static

This commit is contained in:
Campbell Barton
2011-10-27 14:41:26 +00:00
parent 626f737186
commit 699030ceb6
23 changed files with 39 additions and 65 deletions

View File

@@ -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)