diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-30 19:35:30 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-05-30 19:35:30 (GMT) |
commit | ad65c6e23de430b2c4f0ef732b95834c87a28c20 (patch) | |
tree | 3ef766a4fc3d6b5bf1987b9041d5046e2362c52e /src/xmlgen.cpp | |
parent | 44904635bc78fae2ce60fc942cc5b7cba9958a34 (diff) | |
download | Doxygen-ad65c6e23de430b2c4f0ef732b95834c87a28c20.zip Doxygen-ad65c6e23de430b2c4f0ef732b95834c87a28c20.tar.gz Doxygen-ad65c6e23de430b2c4f0ef732b95834c87a28c20.tar.bz2 |
Release-1.4.3-20050530
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index 3a73c55..8be6b44 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -594,9 +594,9 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De if (md->memberType() == MemberDef::Variable) { - ArgumentList *al = md->argumentList(); - t << " volatile=\""; - if (al && al->volatileSpecifier) t << "yes"; else t << "no"; + //ArgumentList *al = md->argumentList(); + //t << " volatile=\""; + //if (al && al->volatileSpecifier) t << "yes"; else t << "no"; t << "\" mutable=\""; if (md->isMutable()) t << "yes"; else t << "no"; @@ -660,7 +660,7 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De << convertToXML(rmd->name()) << "</reimplementedby>" << endl; } } - + if (isFunc) //function { ArgumentList *declAl = md->declArgumentList(); @@ -723,13 +723,21 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De } } else if (md->memberType()==MemberDef::Define && - md->argsString()!=0) // define + md->argsString()) // define { - ArgumentListIterator ali(*md->argumentList()); - Argument *a; - for (ali.toFirst();(a=ali.current());++ali) + if (md->argumentList()->count()==0) // special case for "foo()" to + // disguish it from "foo". { - t << " <param><defname>" << a->type << "</defname></param>" << endl; + t << " <param></param>" << endl; + } + else + { + ArgumentListIterator ali(*md->argumentList()); + Argument *a; + for (ali.toFirst();(a=ali.current());++ali) + { + t << " <param><defname>" << a->type << "</defname></param>" << endl; + } } } // avoid that extremely large tables are written to the output. |