diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 16:44:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 16:44:16 +0400 |
commit | 424e09a2cec805aa67824385c16a1d267fb1022b (patch) | |
tree | 57a6a1974bd73e4ef83b442e98cde72460713a9c /source/gameengine/Expressions | |
parent | c52f78002150c5f39ffb1d49bffc7649d5a15b3c (diff) |
use PyUnicode_From_STR_String in the game engine in more places.
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r-- | source/gameengine/Expressions/StringValue.h | 2 | ||||
-rw-r--r-- | source/gameengine/Expressions/Value.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Expressions/StringValue.h b/source/gameengine/Expressions/StringValue.h index e5a892ff82d..931858b7eed 100644 --- a/source/gameengine/Expressions/StringValue.h +++ b/source/gameengine/Expressions/StringValue.h @@ -43,7 +43,7 @@ public: virtual CValue* GetReplica(); #ifdef WITH_PYTHON virtual PyObject* ConvertValueToPython() { - return PyUnicode_FromString(m_strString.Ptr()); + return PyUnicode_From_STR_String(m_strString); } #endif // WITH_PYTHON diff --git a/source/gameengine/Expressions/Value.h b/source/gameengine/Expressions/Value.h index f9697a55d3f..10d8a8abd8f 100644 --- a/source/gameengine/Expressions/Value.h +++ b/source/gameengine/Expressions/Value.h @@ -221,7 +221,7 @@ public: //static PyObject* PyMake(PyObject*,PyObject*); virtual PyObject *py_repr(void) { - return PyUnicode_FromString((const char*)GetText()); + return PyUnicode_From_STR_String(GetText()); } virtual PyObject* ConvertValueToPython() { |