From 562b2d3438abe13f4d89f0ac9ea8c0362ef12fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 15 Mar 2017 17:03:17 +0100 Subject: [PATCH] C++ wrapper: fix translation of audio_codecs and video_codecs properties of LinphoneCore --- wrappers/cpp/genwrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrappers/cpp/genwrapper.py b/wrappers/cpp/genwrapper.py index 7876d78a4..36cd6a0e4 100755 --- a/wrappers/cpp/genwrapper.py +++ b/wrappers/cpp/genwrapper.py @@ -293,8 +293,8 @@ class CppTranslator(object): elif type(exprtype) is AbsApi.ListType: if type(exprtype.containedTypeDesc) is AbsApi.BaseType and exprtype.containedTypeDesc.name == 'string': cExpr = 'StringBctbxListWrapper({0}).c_list()'.format(cppExpr) - elif type(exprtype.containedTypeDesc) is AbsApi.Class: - ptrType = CppTranslator.translate_class_type(exprtype, namespace=usedNamespace) + elif type(exprtype.containedTypeDesc) is AbsApi.ClassType: + ptrType = CppTranslator.translate_class_type(self, exprtype.containedTypeDesc, namespace=usedNamespace) ptrType = CppTranslator.sharedPtrTypeExtractor.match(ptrType).group(2) cExpr = 'ObjectBctbxListWrapper<{0}>({1}).c_list()'.format(ptrType, cppExpr) else: