make the second parameter to wxTreeCtrl.GetFirstChild optional

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-06-12 19:54:18 +00:00
parent e7d0a4140b
commit f87dfa063a
2 changed files with 4 additions and 3 deletions

View File

@@ -1213,7 +1213,7 @@ public:
size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE); size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE);
wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& INOUT); wxTreeItemId GetFirstChild(const wxTreeItemId& item, long& INOUT=0);
wxTreeItemId GetNextChild(const wxTreeItemId& item, long& INOUT); wxTreeItemId GetNextChild(const wxTreeItemId& item, long& INOUT);
wxTreeItemId GetNextSibling(const wxTreeItemId& item); wxTreeItemId GetNextSibling(const wxTreeItemId& item);
wxTreeItemId GetPrevSibling(const wxTreeItemId& item); wxTreeItemId GetPrevSibling(const wxTreeItemId& item);

View File

@@ -7780,7 +7780,7 @@ static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args,
wxTreeItemId * _result; wxTreeItemId * _result;
wxPyTreeCtrl * _arg0; wxPyTreeCtrl * _arg0;
wxTreeItemId * _arg1; wxTreeItemId * _arg1;
long * _arg2; long * _arg2 = (long *) &0;
PyObject * _argo0 = 0; PyObject * _argo0 = 0;
PyObject * _argo1 = 0; PyObject * _argo1 = 0;
long temp; long temp;
@@ -7789,7 +7789,7 @@ static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args,
char _ptemp[128]; char _ptemp[128];
self = self; self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
return NULL; return NULL;
if (_argo0) { if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; } if (_argo0 == Py_None) { _arg0 = NULL; }
@@ -7805,6 +7805,7 @@ static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args,
return NULL; return NULL;
} }
} }
if (_obj2)
{ {
temp = (long) PyInt_AsLong(_obj2); temp = (long) PyInt_AsLong(_obj2);
_arg2 = &temp; _arg2 = &temp;