code cleanup: add 'const' to headers to quiet msvc warnings, also remove (char *) casts that aren't needed now we're on Python3.3

This commit is contained in:
Campbell Barton
2013-03-17 18:30:31 +00:00
parent e2b2d083e0
commit 16b82845ee
13 changed files with 44 additions and 44 deletions

View File

@@ -270,7 +270,7 @@ void SCA_PythonController::ErrorPrint(const char *error_msg)
* their user count. Not to mention holding references to wrapped data.
* This is especially bad when the PyObject for the wrapped data is freed, after blender
* has already dealocated the pointer */
PySys_SetObject( (char *)"last_traceback", NULL);
PySys_SetObject("last_traceback", NULL);
PyErr_Clear(); /* just to be sure */
}