From 7753ca6bed4bf8225910e9a486200c982bed7207 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 17 Oct 2006 20:49:16 +0000 Subject: [PATCH] reSWIGged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/gtk/_core_wrap.cpp | 9 +++------ wxPython/src/mac/_core_wrap.cpp | 9 +++------ wxPython/src/msw/_core_wrap.cpp | 9 +++------ 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/wxPython/src/gtk/_core_wrap.cpp b/wxPython/src/gtk/_core_wrap.cpp index 0a1af05489..b568cb0d1d 100644 --- a/wxPython/src/gtk/_core_wrap.cpp +++ b/wxPython/src/gtk/_core_wrap.cpp @@ -47359,7 +47359,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] ; @@ -47373,14 +47373,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; diff --git a/wxPython/src/mac/_core_wrap.cpp b/wxPython/src/mac/_core_wrap.cpp index 4b771303ee..4df891d46b 100644 --- a/wxPython/src/mac/_core_wrap.cpp +++ b/wxPython/src/mac/_core_wrap.cpp @@ -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; diff --git a/wxPython/src/msw/_core_wrap.cpp b/wxPython/src/msw/_core_wrap.cpp index 3c1d6fa633..4926571a02 100644 --- a/wxPython/src/msw/_core_wrap.cpp +++ b/wxPython/src/msw/_core_wrap.cpp @@ -47384,7 +47384,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] ; @@ -47398,14 +47398,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;