Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer.

This commit is contained in:
Kester Maddock
2004-05-16 13:05:15 +00:00
parent 9827bf0cd7
commit 2fd6e72851
84 changed files with 121 additions and 118 deletions

View File

@@ -72,7 +72,7 @@ class SCA_PythonController : public SCA_IController
static PyObject* sPyAddActiveActuator(PyObject* self,
PyObject* args,
PyObject* kwds);
virtual PyObject* _getattr(char *attr);
virtual PyObject* _getattr(const STR_String& attr);
KX_PYMETHOD_DOC(SCA_PythonController,GetSensors);
KX_PYMETHOD_DOC(SCA_PythonController,GetSensor);