Update Code Generator for extensions - In C++ support, support classname<classname> in the method output.
@@ -1328,10 +1328,15 @@ Func GenRingCode aList
aPara = aFunc[C_FUNC_PARA]
cCode += GenRingCodeParaList(aPara)
+ # Support ClassName<ClassName> like QVector<QVoice>
+ cFuncOutput = aFunc[C_FUNC_OUTPUT]
+ cFuncOutput = substr(cFuncOutput,"<","")
+ cFuncOutput = substr(cFuncOutput,">","")
+
lRetObj = false
- if find($aClassesList,aFunc[C_FUNC_OUTPUT],1) > 0
+ if find($aClassesList,cFuncOutput,1) > 0
lRetObj = true
- cCode += nl + C_TABS_2 + "pTempObj = new " + aFunc[C_FUNC_OUTPUT] + nl +
+ cCode += nl + C_TABS_2 + "pTempObj = new " + cFuncOutput + nl +
C_TABS_2+"pTempObj.pObject = "
but find($aClassesList,GenPointerType(aFunc[C_FUNC_OUTPUT]),1) > 0
lRetObj = true
