From e88f00d7c7700b3514640f59a6aca3671ea31ca9 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 6 Sep 2017 16:27:48 +0100 Subject: [PATCH] Remove argout typemap as it's no longer needed and applies wrongly often --- qrenderdoc/Code/pyrenderdoc/pyconversion.i | 24 ---------------------- 1 file changed, 24 deletions(-) diff --git a/qrenderdoc/Code/pyrenderdoc/pyconversion.i b/qrenderdoc/Code/pyrenderdoc/pyconversion.i index 1cadd6c33..ef45a6c81 100644 --- a/qrenderdoc/Code/pyrenderdoc/pyconversion.i +++ b/qrenderdoc/Code/pyrenderdoc/pyconversion.i @@ -100,30 +100,6 @@ SIMPLE_TYPEMAPS_VARIANT(SimpleType, SimpleType &) tempdealloc($1); } -%typemap(argout, fragment="pyconvert") ContainerType { - // empty the previous contents - if(PyDict_Check($input)) - { - PyDict_Clear($input); - } - else - { - Py_ssize_t sz = PySequence_Size($input); - if(sz > 0) - PySequence_DelSlice($input, 0, sz); - } - - // overwrite with array contents - int failIdx = 0; - PyObject *res = TypeConversion::type>::ConvertToPyInPlace(self, $input, indirect($1), &failIdx); - - if(!res) - { - snprintf(convert_error, sizeof(convert_error)-1, "in method '$symname' argument $argnum of type '$1_basetype', encoding element %d", failIdx); - SWIG_exception_fail(SWIG_ValueError, convert_error); - } -} - %typemap(out, fragment="pyconvert") ContainerType { int failIdx = 0; $result = TypeConversion::type>::ConvertToPy(self, indirect($1), &failIdx);