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

Commit

Permalink
Merge pull request #72 from xantares/doxy2swig
Browse files Browse the repository at this point in the history
Fix doxy2swig.py IndexError: list index out of range
  • Loading branch information
nshmyrev authored Feb 6, 2020
2 parents 057d423 + 6989c52 commit 4ffc4b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/doxy2swig.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ def do_memberdef(self, node):
name = first['name'].firstChild.data

for n in node.getElementsByTagName('param'):
arg_type = n.getElementsByTagName('type')[0]
elts = n.getElementsByTagName('type')
if len(elts) == 0:
continue
arg_type = elts[0]
ref = self.get_specific_nodes(arg_type, ('ref'))
if 'ref' in ref:
type_name = ref['ref'].firstChild.data
Expand Down

0 comments on commit 4ffc4b7

Please sign in to comment.