Commit c3790b3f authored by Xavier Thompson's avatar Xavier Thompson

Fix crash for qualified const or typedef cypclass

parent ebac17d8
...@@ -445,7 +445,7 @@ class CTypedefType(BaseType): ...@@ -445,7 +445,7 @@ class CTypedefType(BaseType):
return self.typedef_base_type.resolve() return self.typedef_base_type.resolve()
def declaration_code(self, entity_code, def declaration_code(self, entity_code,
for_display = 0, dll_linkage = None, pyrex = 0): for_display = 0, dll_linkage = None, pyrex = 0, *_unused_):
if pyrex or for_display: if pyrex or for_display:
base_code = self.typedef_name base_code = self.typedef_name
else: else:
...@@ -1893,12 +1893,12 @@ class CConstOrVolatileType(BaseType): ...@@ -1893,12 +1893,12 @@ class CConstOrVolatileType(BaseType):
return self.declaration_code("", for_display=1) return self.declaration_code("", for_display=1)
def declaration_code(self, entity_code, def declaration_code(self, entity_code,
for_display = 0, dll_linkage = None, pyrex = 0): for_display = 0, dll_linkage = None, pyrex = 0, *args):
cv = self.cv_string() cv = self.cv_string()
if for_display or pyrex: if for_display or pyrex:
return cv + self.cv_base_type.declaration_code(entity_code, for_display, dll_linkage, pyrex) return cv + self.cv_base_type.declaration_code(entity_code, for_display, dll_linkage, pyrex, *args)
else: else:
return self.cv_base_type.declaration_code(cv + entity_code, for_display, dll_linkage, pyrex) return self.cv_base_type.declaration_code(cv + entity_code, for_display, dll_linkage, pyrex, *args)
def specialize(self, values): def specialize(self, values):
base_type = self.cv_base_type.specialize(values) base_type = self.cv_base_type.specialize(values)
......
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