Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 4ffc4b7

Browse files
authored
Merge pull request #72 from xantares/doxy2swig
Fix doxy2swig.py IndexError: list index out of range
2 parents 057d423 + 6989c52 commit 4ffc4b7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

doc/doxy2swig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,10 @@ def do_memberdef(self, node):
299299
name = first['name'].firstChild.data
300300

301301
for n in node.getElementsByTagName('param'):
302-
arg_type = n.getElementsByTagName('type')[0]
302+
elts = n.getElementsByTagName('type')
303+
if len(elts) == 0:
304+
continue
305+
arg_type = elts[0]
303306
ref = self.get_specific_nodes(arg_type, ('ref'))
304307
if 'ref' in ref:
305308
type_name = ref['ref'].firstChild.data

0 commit comments

Comments
 (0)