diff options
-rw-r--r-- | xbmc/interfaces/python/typemaps/python.Alternative.outtm | 2 | ||||
-rw-r--r-- | xbmc/interfaces/python/typemaps/python.Tuple.outtm | 2 | ||||
-rw-r--r-- | xbmc/interfaces/python/typemaps/python.vector.outtm | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/xbmc/interfaces/python/typemaps/python.Alternative.outtm b/xbmc/interfaces/python/typemaps/python.Alternative.outtm index e8b069f783..79143c1be0 100644 --- a/xbmc/interfaces/python/typemaps/python.Alternative.outtm +++ b/xbmc/interfaces/python/typemaps/python.Alternative.outtm @@ -37,7 +37,7 @@ %> if (pos == XBMCAddon::${altSwitch[entryIndex]}) { - const ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(curType))}& entry${seq} = ${api}${accessor}${altAccess[entryIndex]}(); + ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(curType))}& entry${seq} = ${api}${accessor}${altAccess[entryIndex]}(); { ${helper.getOutConversion(curType,result,method,[ 'api' : 'entry' + seq, 'sequence' : sequence ])} } diff --git a/xbmc/interfaces/python/typemaps/python.Tuple.outtm b/xbmc/interfaces/python/typemaps/python.Tuple.outtm index f32dcfb7d9..a03017bddd 100644 --- a/xbmc/interfaces/python/typemaps/python.Tuple.outtm +++ b/xbmc/interfaces/python/typemaps/python.Tuple.outtm @@ -44,7 +44,7 @@ if (vecSize > ${entryIndex}) { - const ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(curType))}& entry${seq} = ${api}${accessor}${tupleAccess[entryIndex]}(); + ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(curType))}& entry${seq} = ${api}${accessor}${tupleAccess[entryIndex]}(); { ${helper.getOutConversion(curType,'result',method,[ 'result' : 'pyentry' + seq, 'api' : 'entry' + seq, 'sequence' : sequence ])} } diff --git a/xbmc/interfaces/python/typemaps/python.vector.outtm b/xbmc/interfaces/python/typemaps/python.vector.outtm index 424643f172..6329ce1b70 100644 --- a/xbmc/interfaces/python/typemaps/python.vector.outtm +++ b/xbmc/interfaces/python/typemaps/python.vector.outtm @@ -36,9 +36,9 @@ if (${api} != NULL) { <% } %> - for (std::vector<${vectype}>::const_iterator iter = ${api}${accessor}begin(); iter != ${api}${accessor}end(); ++iter) + for (std::vector<${swigTypeParser.SwigType_str(vectype)}>::iterator iter = ${api}${accessor}begin(); iter != ${api}${accessor}end(); ++iter) { - const ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(vectype))}& entry${seq} = *iter; + ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(vectype))}& entry${seq} = *iter; PyObject* pyentry${seq}; ${helper.getOutConversion(vectype,'result',method,[ 'result' : 'pyentry' + seq, 'api' : 'entry' + seq, 'sequence' : sequence ])} PyList_Append(${result}, pyentry${seq}); |