summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-02-03 10:42:52 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-02-03 10:42:52 (GMT)
commitac16b765b390a835d3f455691a2e3f6a0e94bd78 (patch)
treec6e72204c112ad8646d737990b93aa290c61c34c /src/xmlgen.cpp
parent75fa97fc3cac911c348d177c98057dc68c61771b (diff)
downloadDoxygen-ac16b765b390a835d3f455691a2e3f6a0e94bd78.zip
Doxygen-ac16b765b390a835d3f455691a2e3f6a0e94bd78.tar.gz
Doxygen-ac16b765b390a835d3f455691a2e3f6a0e94bd78.tar.bz2
Release-1.2.13-20020203
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 86fb548..ac9b230 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -930,7 +930,7 @@ static void writeXMLDocBlock(QTextStream &t,
const QCString &fileName,
int lineNr,
const QCString &scope,
- const QCString &name,
+ MemberDef *md,
const QCString &text)
{
QCString stext = text.stripWhiteSpace();
@@ -938,10 +938,10 @@ static void writeXMLDocBlock(QTextStream &t,
XMLGenerator *xmlGen = new XMLGenerator;
//xmlGen->startParMode();
parseDoc(*xmlGen,
- fileName, // input definition file
- lineNr, // input definition line
- scope, // scope (which should not be linked to)
- name, // member (which should not be linked to)
+ fileName, // input definition file
+ lineNr, // input definition line
+ scope, // scope (which should not be linked to)
+ md, // member (which should not be linked to)
stext+"\n" // actual text
);
xmlGen->endParMode();
@@ -1112,10 +1112,9 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
if (isFunc) //function
{
- ArgumentList *declAl = new ArgumentList;
+ ArgumentList *declAl = md->declArgumentList();
ArgumentList *defAl = md->argumentList();
- stringToArgumentList(md->argsString(),declAl);
- if (declAl->count()>0)
+ if (declAl && declAl->count()>0)
{
ArgumentListIterator declAli(*declAl);
ArgumentListIterator defAli(*defAl);
@@ -1164,7 +1163,6 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
if (defArg) ++defAli;
}
}
- delete declAl;
}
else if (md->memberType()==MemberDef::Define &&
md->argsString()!=0) // define
@@ -1213,10 +1211,10 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De
}
}
t << " <briefdescription>" << endl;
- writeXMLDocBlock(t,md->getDefFileName(),md->getDefLine(),scopeName,md->name(),md->briefDescription());
+ writeXMLDocBlock(t,md->getDefFileName(),md->getDefLine(),scopeName,md,md->briefDescription());
t << " </briefdescription>" << endl;
t << " <detaileddescription>" << endl;
- writeXMLDocBlock(t,md->getDefFileName(),md->getDefLine(),scopeName,md->name(),md->documentation());
+ writeXMLDocBlock(t,md->getDefFileName(),md->getDefLine(),scopeName,md,md->documentation());
t << " </detaileddescription>" << endl;
if (md->getDefLine()!=-1)
{