@@ -6476,9 +6476,6 @@ SWIGINTERN Exiv2::XmpArrayValue *new_Exiv2_XmpArrayValue__SWIG_0(std::vector< st
64766476SWIGINTERN Exiv2::XmpArrayValue *new_Exiv2_XmpArrayValue__SWIG_1(Exiv2::TypeId typeId_xmpBag){
64776477 return new Exiv2::XmpArrayValue(typeId_xmpBag);
64786478 }
6479- SWIGINTERN std::string Exiv2_XmpArrayValue___getitem__(Exiv2::XmpArrayValue *self,long idx){
6480- return self->toString(idx);
6481- }
64826479SWIGINTERN PyObject *Exiv2_XmpArrayValue_append(Exiv2::XmpArrayValue *self,std::string value){
64836480 int error = self->read(value);
64846481 if (error)
@@ -12075,42 +12072,6 @@ SWIGINTERN int _wrap_new_XmpArrayValue(PyObject *self, PyObject *args, PyObject
1207512072}
1207612073
1207712074
12078- SWIGINTERN PyObject *_wrap_XmpArrayValue___getitem__(PyObject *self, PyObject *args) {
12079- PyObject *resultobj = 0;
12080- Exiv2::XmpArrayValue *arg1 = (Exiv2::XmpArrayValue *) 0 ;
12081- long arg2 ;
12082- void *argp1 = 0 ;
12083- int res1 = 0 ;
12084- long val2 ;
12085- int ecode2 = 0 ;
12086- PyObject * obj1 = 0 ;
12087- std::string result;
12088-
12089- if (!PyArg_UnpackTuple(args, "XmpArrayValue___getitem__", 1, 1, &obj1)) SWIG_fail;
12090- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Exiv2__XmpArrayValue, 0 | 0 );
12091- if (!SWIG_IsOK(res1)) {
12092- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmpArrayValue___getitem__" "', argument " "1"" of type '" "Exiv2::XmpArrayValue *""'");
12093- }
12094- arg1 = reinterpret_cast< Exiv2::XmpArrayValue * >(argp1);
12095- ecode2 = SWIG_AsVal_long(obj1, &val2);
12096- if (!SWIG_IsOK(ecode2)) {
12097- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmpArrayValue___getitem__" "', argument " "2"" of type '" "long""'");
12098- }
12099- arg2 = static_cast< long >(val2);
12100-
12101- if (arg2 < 0 || arg2 >= static_cast< long >(arg1->count())) {
12102- PyErr_Format(PyExc_IndexError, "index %d out of range", arg2);
12103- SWIG_fail;
12104- }
12105-
12106- result = Exiv2_XmpArrayValue___getitem__(arg1,arg2);
12107- resultobj = SWIG_From_std_string(static_cast< std::string >(result));
12108- return resultobj;
12109- fail:
12110- return NULL;
12111- }
12112-
12113-
1211412075SWIGINTERN PyObject *_wrap_XmpArrayValue_append(PyObject *self, PyObject *args) {
1211512076 PyObject *resultobj = 0;
1211612077 Exiv2::XmpArrayValue *arg1 = (Exiv2::XmpArrayValue *) 0 ;
@@ -12165,7 +12126,7 @@ SWIGINTERN PyObject *_wrap_delete_XmpArrayValue(PyObject *self, PyObject *args)
1216512126
1216612127SWIGPY_LENFUNC_CLOSURE(_wrap_XmpArrayValue_count) /* defines _wrap_XmpArrayValue_count_lenfunc_closure */
1216712128
12168- SWIGPY_SSIZEARGFUNC_CLOSURE(_wrap_XmpArrayValue___getitem__ ) /* defines _wrap_XmpArrayValue___getitem___ssizeargfunc_closure */
12129+ SWIGPY_SSIZEARGFUNC_CLOSURE(_wrap_XmpArrayValue_toString ) /* defines _wrap_XmpArrayValue_toString_ssizeargfunc_closure */
1216912130
1217012131SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_XmpArrayValue) /* defines _wrap_delete_XmpArrayValue_destructor_closure */
1217112132
@@ -27959,7 +27920,6 @@ SWIGINTERN PyMethodDef SwigPyBuiltin__Exiv2__XmpArrayValue_methods[] = {
2795927920 "Notes: The output of this method cannot directly be used as the parameter\n"
2796027921 " for read().\n"
2796127922 "" },
27962- { "__getitem__", _wrap_XmpArrayValue___getitem__, METH_VARARGS, "" },
2796327923 { "append", _wrap_XmpArrayValue_append, METH_VARARGS, "" },
2796427924 { NULL, NULL, 0, NULL } /* Sentinel */
2796527925};
@@ -28138,7 +28098,7 @@ static PyHeapTypeObject SwigPyBuiltin__Exiv2__XmpArrayValue_type = {
2813828098 _wrap_XmpArrayValue_count_lenfunc_closure, /* sq_length */
2813928099 (binaryfunc) 0, /* sq_concat */
2814028100 (ssizeargfunc) 0, /* sq_repeat */
28141- _wrap_XmpArrayValue___getitem___ssizeargfunc_closure , /* sq_item */
28101+ _wrap_XmpArrayValue_toString_ssizeargfunc_closure , /* sq_item */
2814228102#if PY_VERSION_HEX >= 0x03000000
2814328103 (void *) 0, /* was_sq_slice */
2814428104#else
@@ -28280,7 +28240,7 @@ static PyTypeObject *SwigPyBuiltin__Exiv2__XmpArrayValue_type_create(PyTypeObjec
2828028240 { Py_sq_length, (void *)_wrap_XmpArrayValue_count_lenfunc_closure },
2828128241 { Py_sq_concat, (void *)(binaryfunc) 0 },
2828228242 { Py_sq_repeat, (void *)(ssizeargfunc) 0 },
28283- { Py_sq_item, (void *)_wrap_XmpArrayValue___getitem___ssizeargfunc_closure },
28243+ { Py_sq_item, (void *)_wrap_XmpArrayValue_toString_ssizeargfunc_closure },
2828428244 { Py_sq_ass_item, (void *)(ssizeobjargproc) 0 },
2828528245 { Py_sq_contains, (void *)(objobjproc) 0 },
2828628246 { Py_sq_inplace_concat, (void *)(binaryfunc) 0 },
0 commit comments