wxWidgets/wxPython/SWIG/pycpp.cxx.patch
Robin Dunn 0220cbc169 Second phase of OOR completed. (Original python object return for
wxEvtHandler and derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-13 00:41:21 +00:00

23 lines
965 B
Diff

*** Modules/pycpp.cxx.orig Fri Oct 12 16:37:36 2001
--- Modules/pycpp.cxx Fri Oct 12 16:38:20 2001
***************
*** 228,235 ****
*additional << "def " << realname << "(*_args,**_kwargs):\n";
*additional << tab4 << "val = " << class_name << "Ptr(apply("
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
! << tab4 << "val.thisown = 1\n"
! << tab4 << "return val\n\n";
}
// Patch up the documentation entry
if (doc_entry) {
--- 228,236 ----
*additional << "def " << realname << "(*_args,**_kwargs):\n";
*additional << tab4 << "val = " << class_name << "Ptr(apply("
<< module << "." << name_construct(realname) << ",_args,_kwargs))\n"
! << tab4 << "val.thisown = 1\n";
! emitAddPragmas(*additional, realname, tab4);
! *additional << tab4 << "return val\n\n";
}
// Patch up the documentation entry
if (doc_entry) {