]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/_core_wrap.cpp
Ref counting overview.
[wxWidgets.git] / wxPython / src / mac / _core_wrap.cpp
index 4b771303eeb707256c1d366b8550605c3a53dbb5..4df891d46b96c1e1e862b415e1ed1263ef05c45d 100644 (file)
@@ -47358,7 +47358,7 @@ fail:
 SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
   wxSizerItem *arg1 = (wxSizerItem *) 0 ;
-  wxSize *result = 0 ;
+  wxSize result;
   void *argp1 = 0 ;
   int res1 = 0 ;
   PyObject *swig_obj[1] ;
@@ -47372,14 +47372,11 @@ SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), P
   arg1 = reinterpret_cast< wxSizerItem * >(argp1);
   {
     PyThreadState* __tstate = wxPyBeginAllowThreads();
-    {
-      wxSize const &_result_ref = (arg1)->GetSpacer();
-      result = (wxSize *) &_result_ref;
-    }
+    result = (arg1)->GetSpacer();
     wxPyEndAllowThreads(__tstate);
     if (PyErr_Occurred()) SWIG_fail;
   }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 |  0 );
+  resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN |  0 );
   return resultobj;
 fail:
   return NULL;