Commit a568f332 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed issue in C++ wrapper: forward declaration of class instead of importing header

parent a1db41d2
......@@ -591,15 +591,12 @@ class ClassHeader(object):
self.includes = {'internal': [], 'external': []}
includes = self.needed_includes(_class)
for include in includes['internal']:
if _class.name.to_camel_case(fullName=True) == 'LinphoneCore' or (isinstance(_class, AbsApi.Interface) and _class.listenedClass is not None and include == _class.listenedClass.name.to_snake_case()):
if include == 'enums':
self.includes['internal'].append({'name': include})
else:
className = AbsApi.ClassName()
className.from_snake_case(include)
self.priorDeclarations.append({'name': className.to_camel_case()})
else:
if include == 'enums':
self.includes['internal'].append({'name': include})
else:
className = AbsApi.ClassName()
className.from_snake_case(include)
self.priorDeclarations.append({'name': className.to_camel_case()})
for include in includes['external']:
self.includes['external'].append({'name': include})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment