diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-05-06 12:30:18 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-05-06 12:30:18 (GMT) |
commit | 23c13fc17365dca77acbe9a992e03ae4a40f6eca (patch) | |
tree | cfc812b095178411db5aae564fc43cac8b714078 /src/perlmodgen.cpp | |
parent | 124b4621e793d9ffa3eca3ee91cdb6ded37c553e (diff) | |
download | Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.zip Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.tar.gz Doxygen-23c13fc17365dca77acbe9a992e03ae4a40f6eca.tar.bz2 |
Release-1.5.2-20070506
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index dadc439..b6a2cd3 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -1692,10 +1692,13 @@ void PerlModGenerator::generatePerlModForClass(ClassDef *cd) addTemplateList(cd,m_output); addListOfAllMembers(cd); - MemberGroupSDict::Iterator mgli(*cd->getMemberGroupSDict()); - MemberGroup *mg; - for (;(mg=mgli.current());++mgli) - generatePerlModSection(cd,mg->members(),"user_defined",mg->header()); + if (cd->getMemberGroupSDict()) + { + MemberGroupSDict::Iterator mgli(*cd->getMemberGroupSDict()); + MemberGroup *mg; + for (;(mg=mgli.current());++mgli) + generatePerlModSection(cd,mg->members(),"user_defined",mg->header()); + } generatePerlModSection(cd,cd->getMemberList(MemberList::pubTypes),"public_typedefs"); generatePerlModSection(cd,cd->getMemberList(MemberList::pubMethods),"public_methods"); @@ -1795,10 +1798,13 @@ void PerlModGenerator::generatePerlModForNamespace(NamespaceDef *nd) m_output.closeList(); } - MemberGroupSDict::Iterator mgli(*nd->getMemberGroupSDict()); - MemberGroup *mg; - for (;(mg=mgli.current());++mgli) - generatePerlModSection(nd,mg->members(),"user-defined",mg->header()); + if (nd->getMemberGroupSDict()) + { + MemberGroupSDict::Iterator mgli(*nd->getMemberGroupSDict()); + MemberGroup *mg; + for (;(mg=mgli.current());++mgli) + generatePerlModSection(nd,mg->members(),"user-defined",mg->header()); + } generatePerlModSection(nd,nd->getMemberList(MemberList::decDefineMembers),"defines"); generatePerlModSection(nd,nd->getMemberList(MemberList::decProtoMembers),"prototypes"); @@ -1967,10 +1973,13 @@ void PerlModGenerator::generatePerlModForGroup(GroupDef *gd) m_output.closeList(); } - MemberGroupSDict::Iterator mgli(*gd->getMemberGroupSDict()); - MemberGroup *mg; - for (;(mg=mgli.current());++mgli) - generatePerlModSection(gd,mg->members(),"user-defined",mg->header()); + if (gd->getMemberGroupSDict()) + { + MemberGroupSDict::Iterator mgli(*gd->getMemberGroupSDict()); + MemberGroup *mg; + for (;(mg=mgli.current());++mgli) + generatePerlModSection(gd,mg->members(),"user-defined",mg->header()); + } generatePerlModSection(gd,gd->getMemberList(MemberList::decDefineMembers),"defines"); generatePerlModSection(gd,gd->getMemberList(MemberList::decProtoMembers),"prototypes"); |