From: Robin Dunn Date: Mon, 29 Dec 2003 23:07:26 +0000 (+0000) Subject: Fix compile error when building for Python 2.2 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e4f4d6533de0a6502a13f6d8c83f3b9fb2dc3507 Fix compile error when building for Python 2.2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 5030bead5f..c64bcf30b4 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -598,7 +598,7 @@ static void rsoPass2(const char* name) } // Find the object instance - obj = PyDict_GetItemString(wxPython_dict, dropwx(name)); + obj = PyDict_GetItemString(wxPython_dict, (char*)dropwx(name)); wxCHECK_RET(obj != NULL, wxT("Unable to find stock object")); wxCHECK_RET(wxPySwigInstance_Check(obj), wxT("Not a swig instance")); @@ -614,12 +614,12 @@ static void rsoPass3(const char* name, const char* classname, void* ptr) PyObject* ptrobj; // Find the object instance - obj = PyDict_GetItemString(wxPython_dict, dropwx(name)); + obj = PyDict_GetItemString(wxPython_dict, (char*)dropwx(name)); wxCHECK_RET(obj != NULL, wxT("Unable to find stock object")); wxCHECK_RET(wxPySwigInstance_Check(obj), wxT("Not a swig instance")); // Find the class object and put it back in the instance - classobj = PyDict_GetItemString(wxPython_dict, dropwx(classname)); + classobj = PyDict_GetItemString(wxPython_dict, (char*)dropwx(classname)); wxCHECK_RET(classobj != NULL, wxT("Unable to find stock class object")); PyObject_SetAttrString(obj, "__class__", classobj); @@ -633,8 +633,6 @@ static void rsoPass3(const char* name, const char* classname, void* ptr) void wxPy_ReinitStockObjects(int pass) { - PyObject* obj; - PyObject* ptrobj; #define REINITOBJ(name, classname) \ if (pass == 1) { name = (classname*)0xC0C0C0C0; } \