diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:05:15 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:05:15 +0400 |
commit | 2fd6e728513f46e1f313667dfcf6b3d6e09cad39 (patch) | |
tree | 97306352111268430c9c5bcd75c1638be098cc0d /source/gameengine/Ketsji/KX_ConstraintWrapper.h | |
parent | 9827bf0cd7c94273e147caae6bb254cf70aed221 (diff) |
Changed Python _getattr/_setattr methods to use const STR_String& instead of char* - makes using these methods much nicer.
Diffstat (limited to 'source/gameengine/Ketsji/KX_ConstraintWrapper.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_ConstraintWrapper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_ConstraintWrapper.h b/source/gameengine/Ketsji/KX_ConstraintWrapper.h index 9f4bb78bdc4..12fd7fbe292 100644 --- a/source/gameengine/Ketsji/KX_ConstraintWrapper.h +++ b/source/gameengine/Ketsji/KX_ConstraintWrapper.h @@ -38,8 +38,8 @@ class KX_ConstraintWrapper : public PyObjectPlus { Py_Header; - PyObject* _getattr(char* attr); - virtual int _setattr(char *attr, PyObject *value); + virtual PyObject* _getattr(const STR_String& attr); + virtual int _setattr(const STR_String& attr, PyObject *value); public: KX_ConstraintWrapper(PHY_ConstraintType ctype,int constraintId,class PHY_IPhysicsEnvironment* physenv,PyTypeObject *T = &Type); virtual ~KX_ConstraintWrapper (); |