diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-31 21:06:11 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-31 21:06:11 (GMT) |
commit | b6bf2aa567a12a0c4011470e53b0a1740b6eb796 (patch) | |
tree | e5ab649cfa1c8f00107c7bfbc789aa5763c33d02 /src/perlmodgen.cpp | |
parent | 6675be21d5085d97b2167959573bc71e42dd93b8 (diff) | |
download | Doxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.zip Doxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.tar.gz Doxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.tar.bz2 |
Refactoring: replace Doxygen::groupSDict by Doxygen::groupLinkedMap
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index da9121f..854b3df 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -2131,13 +2131,10 @@ void PerlModGenerator::generatePerlModForGroup(const GroupDef *gd) m_output.closeList(); } - GroupList *gl = gd->getSubGroups(); - if (gl) + if (!gd->getSubGroups().empty()) { m_output.openList("groups"); - GroupListIterator gli(*gl); - const GroupDef *sgd; - for (gli.toFirst();(sgd=gli.current());++gli) + for (const auto &sgd : gd->getSubGroups()) m_output.openHash() .addFieldQuotedString("title", sgd->groupTitle()) .closeHash(); @@ -2210,11 +2207,9 @@ bool PerlModGenerator::generatePerlModOutput() m_output.closeList(); m_output.openList("groups"); - GroupSDict::Iterator gli(*Doxygen::groupSDict); - const GroupDef *gd; - for (;(gd=gli.current());++gli) + for (const auto &gd : *Doxygen::groupLinkedMap) { - generatePerlModForGroup(gd); + generatePerlModForGroup(gd.get()); } m_output.closeList(); |