]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/gtk/misc.cpp
newly generated files from SWIG
[wxWidgets.git] / utils / wxPython / src / gtk / misc.cpp
index 00f3d77f00c324139ebd33b30d4d8d734d8a3bd3..acc3edee24ae2c5fa96ba74df4d9db817ae0e631 100644 (file)
@@ -780,8 +780,8 @@ static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args) {
     self = self;
     if(!PyArg_ParseTuple(args,"s:wxResourceCreateBitmap",&_arg0)) 
         return NULL;
-    _result = (wxBitmap *)wxResourceCreateBitmap(_arg0);
-    SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
+    _result = new wxBitmap (wxResourceCreateBitmap(_arg0));
+    SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
     _resultobj = Py_BuildValue("s",_ptemp);
     return _resultobj;
 }
@@ -795,8 +795,8 @@ static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args) {
     self = self;
     if(!PyArg_ParseTuple(args,"s:wxResourceCreateIcon",&_arg0)) 
         return NULL;
-    _result = (wxIcon *)wxResourceCreateIcon(_arg0);
-    SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
+    _result = new wxIcon (wxResourceCreateIcon(_arg0));
+    SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
     _resultobj = Py_BuildValue("s",_ptemp);
     return _resultobj;
 }