diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 22:30:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 22:30:31 +0400 |
commit | 16b82845eee4198b2d56aa5a5c373008f5070f7f (patch) | |
tree | 36ca4f5c95b92ecc1e568459c783debf2151c6a5 /source/gameengine/Ketsji/KX_PythonInit.cpp | |
parent | e2b2d083e0cd2c738962e2a4535acdfb17f37416 (diff) |
code cleanup: add 'const' to headers to quiet msvc warnings, also remove (char *) casts that aren't needed now we're on Python3.3
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 22715214324..66333a061c5 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -1929,14 +1929,14 @@ PyObject *initGamePlayerPythonScripting(const STR_String& progname, TPythonSecur /* mathutils types are used by the BGE even if we don't import them */ { - PyObject *mod= PyImport_ImportModuleLevel((char *)"mathutils", NULL, NULL, NULL, 0); + PyObject *mod = PyImport_ImportModuleLevel("mathutils", NULL, NULL, NULL, 0); Py_DECREF(mod); } #ifdef WITH_AUDASPACE /* accessing a SoundActuator's sound results in a crash if aud is not initialized... */ { - PyObject *mod= PyImport_ImportModuleLevel((char *)"aud", NULL, NULL, NULL, 0); + PyObject *mod = PyImport_ImportModuleLevel("aud", NULL, NULL, NULL, 0); Py_DECREF(mod); } #endif @@ -1993,7 +1993,7 @@ PyObject *initGamePythonScripting(const STR_String& progname, TPythonSecurityLev #ifdef WITH_AUDASPACE /* accessing a SoundActuator's sound results in a crash if aud is not initialized... */ { - PyObject *mod= PyImport_ImportModuleLevel((char *)"aud", NULL, NULL, NULL, 0); + PyObject *mod= PyImport_ImportModuleLevel("aud", NULL, NULL, NULL, 0); Py_DECREF(mod); } #endif |