X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..87c2245b34abf6898c8e558bc7674c485c709a68:/wxPython/src/helpers.cpp diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 160773953c..24d16eb352 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -571,7 +571,7 @@ void wxPy_ReinitStockObjects(bool init) obj = PyDict_GetItemString(wxPython_dict, dropwx(#name)); \ wxCHECK_RET(obj != NULL, wxT("Unable to find stock object for " #name)) \ wxCHECK_RET(wxPySwigInstance_Check(obj), wxT("Not a swig instance: " #name)); \ - ptrobj = wxPyMakeSwigPtr((void*)name, #classname); \ + ptrobj = wxPyMakeSwigPtr((void*)name, wxT(#classname)); \ PyObject_SetAttrString(obj, "this", ptrobj); \ Py_DECREF(ptrobj); } @@ -580,7 +580,7 @@ void wxPy_ReinitStockObjects(bool init) obj = PyDict_GetItemString(wxPython_dict, dropwx(#name)); \ wxCHECK_RET(obj != NULL, wxT("Unable to find stock object for " #name)) \ wxCHECK_RET(wxPySwigInstance_Check(obj), wxT("Not a swig instance: " #name)); \ - ptrobj = wxPyMakeSwigPtr((void*)&name, #classname); \ + ptrobj = wxPyMakeSwigPtr((void*)&name, wxT(#classname)); \ PyObject_SetAttrString(obj, "this", ptrobj); \ Py_DECREF(ptrobj); }