@@ -4455,10 +4455,9 @@ static PyObject* pointer_to_list(Exiv2::TagInfo* ptr) {
44554455 PyObject* py_tmp = NULL ;
44564456 while (ptr->tag_ != 0xFFFF ) {
44574457 py_tmp = SWIG_Python_NewPointerObj (
4458- NULL , ptr, SWIGTYPE_p_Exiv2__TagInfo, 0 );
4458+ NULL , ptr++ , SWIGTYPE_p_Exiv2__TagInfo, 0 );
44594459 PyList_Append (list, py_tmp);
44604460 Py_DECREF (py_tmp);
4461- ++ptr;
44624461 }
44634462 return list;
44644463};
@@ -4607,10 +4606,9 @@ static PyObject* pointer_to_list(Exiv2::GroupInfo* ptr) {
46074606 PyObject* py_tmp = NULL ;
46084607 while (ptr->tagList_ ) {
46094608 py_tmp = SWIG_Python_NewPointerObj (
4610- NULL , ptr, SWIGTYPE_p_Exiv2__GroupInfo, 0 );
4609+ NULL , ptr++ , SWIGTYPE_p_Exiv2__GroupInfo, 0 );
46114610 PyList_Append (list, py_tmp);
46124611 Py_DECREF (py_tmp);
4613- ++ptr;
46144612 }
46154613 return list;
46164614};
@@ -4987,10 +4985,7 @@ SWIGINTERN PyObject *_wrap__TagListFct___call__(PyObject *self, PyObject *args)
49874985 arg1 = reinterpret_cast < _TagListFct * >(argp1);
49884986 result = (Exiv2::TagInfo *)(arg1)->__call__ ();
49894987 {
4990- PyObject* list = pointer_to_list (result);
4991- if (!list)
4992- SWIG_fail;
4993- resultobj = SWIG_Python_AppendOutput (resultobj, list, 0 );
4988+ resultobj = pointer_to_list (result);
49944989 }
49954990 return resultobj;
49964991fail:
@@ -5502,10 +5497,7 @@ SWIGINTERN PyObject *_wrap_ExifTags_groupList(PyObject *self, PyObject *args) {
55025497 if (!SWIG_Python_UnpackTuple (args, " ExifTags_groupList" , 0 , 0 , 0 )) SWIG_fail;
55035498 result = (Exiv2::GroupInfo *)Exiv2::ExifTags::groupList ();
55045499 {
5505- PyObject* list = pointer_to_list (result);
5506- if (!list)
5507- SWIG_fail;
5508- resultobj = SWIG_Python_AppendOutput (resultobj, list, 0 );
5500+ resultobj = pointer_to_list (result);
55095501 }
55105502 return resultobj;
55115503fail:
@@ -5535,10 +5527,7 @@ SWIGINTERN PyObject *_wrap_ExifTags_tagList(PyObject *self, PyObject *args) {
55355527 }
55365528 result = (Exiv2::TagInfo *)Exiv2::ExifTags::tagList ((std::string const &)*arg1);
55375529 {
5538- PyObject* list = pointer_to_list (result);
5539- if (!list)
5540- SWIG_fail;
5541- resultobj = SWIG_Python_AppendOutput (resultobj, list, 0 );
5530+ resultobj = pointer_to_list (result);
55425531 }
55435532 if (SWIG_IsNewObj (res1)) delete arg1;
55445533 return resultobj;
0 commit comments