diff options
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 902b0b1..e501428 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -1165,10 +1165,21 @@ void PerlModDocVisitor::visitPre(DocParamList *pl) leaveText(); m_output.openHash() .openList("parameters"); - QStrListIterator li(pl->parameters()); - const char *s; - for (li.toFirst();(s=li.current());++li) + //QStrListIterator li(pl->parameters()); + //const char *s; + QListIterator<DocNode> li(pl->parameters()); + DocNode *param; + for (li.toFirst();(param=li.current());++li) { + QCString s; + if (param->kind()==DocNode::Kind_Word) + { + s = ((DocWord*)param)->word(); + } + else if (param->kind()==DocNode::Kind_LinkedWord) + { + s = ((DocLinkedWord*)param)->word(); + } m_output.openHash() .addFieldQuotedString("name", s) .closeHash(); |