2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-13 18:17:49 -04:00

Fix some warnings and some errors.

This commit is contained in:
Darryl Pogue
2013-02-10 00:14:10 -08:00
parent 70ea64eed2
commit c06cfd1449
13 changed files with 43 additions and 36 deletions

View File

@ -2195,7 +2195,7 @@ PyObject* PythonInterface::LoadObject(char* pickle, int32_t size)
//
// RETURNS : pointer to PyObject that is the result of the command
//
bool PythonInterface::RunStringInteractive(char *command, PyObject* module)
bool PythonInterface::RunStringInteractive(const char *command, PyObject* module)
{
PyObject *d, *v;
// make sure that we're given a good module... or at least one with an address
@ -2231,7 +2231,7 @@ bool PythonInterface::RunStringInteractive(char *command, PyObject* module)
//
// PURPOSE : run a python string in a specific module name
//
bool PythonInterface::RunString(char *command, PyObject* module)
bool PythonInterface::RunString(const char *command, PyObject* module)
{
PyObject *d, *v;
// make sure that we're given a good module... or at least one with an address

View File

@ -199,7 +199,7 @@ public:
// PURPOSE : run a python string in a specific module name
// : Interactive mode (displays results)
//
static bool RunStringInteractive(char *command, PyObject* module);
static bool RunStringInteractive(const char *command, PyObject* module);
/////////////////////////////////////////////////////////////////////////////
@ -210,7 +210,7 @@ public:
//
// PURPOSE : run a python string in a specific module name
//
static bool RunString(char *command, PyObject* module);
static bool RunString(const char *command, PyObject* module);
/////////////////////////////////////////////////////////////////////////////

View File

@ -2533,7 +2533,7 @@ bool plPythonFileMod::MsgReceive(plMessage* msg)
PyObject* retVal = PyObject_CallMethod(
fPyFunctionInstances[kfunc_OnMovieEvent],
(char*)fFunctionNames[kfunc_OnMovieEvent],
"si", moviemsg->fMovieName, (uint32_t)moviemsg->fReason);
"si", moviemsg->fMovieName.AsString().c_str(), (uint32_t)moviemsg->fReason);
if ( retVal == nil )
{
#ifndef PLASMA_EXTERNAL_RELEASE