From b82742a5f0fb1150b124c3e742650f3fe41d57fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 8 Feb 2017 13:49:20 +0100 Subject: [PATCH] Cpp wrapper: fix bug concerning 'void *' --- wrappers/cpp/genwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/cpp/genwrapper.py b/wrappers/cpp/genwrapper.py index 986659b25..51abfcefe 100755 --- a/wrappers/cpp/genwrapper.py +++ b/wrappers/cpp/genwrapper.py @@ -273,7 +273,7 @@ class CppTranslator(object): if type(exprtype) is AbsApi.BaseType: if exprtype.name == 'string': cExpr = 'cppStringToC({0})'.format(cppExpr); - elif exprtype not in ['void', 'string', 'string_array'] and exprtype.isref: + elif exprtype.name not in ['void', 'string', 'string_array'] and exprtype.isref: cExpr = '&' + cppExpr else: cExpr = cppExpr