diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-04 13:33:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-04 13:36:40 (GMT) |
commit | ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613 (patch) | |
tree | f2493e4f41d0bfe2105facffdd3c46287bf516ab /src/index.cpp | |
parent | 0252f61004cada8f9e10644b850dd6ba47d61438 (diff) | |
download | Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.zip Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.tar.gz Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.tar.bz2 |
Refactoring: modernize getMemberLists()
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/index.cpp b/src/index.cpp index c54f7a2..7089a0c 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -355,7 +355,7 @@ void addMembersToIndex(T *def,LayoutDocManager::LayoutPart part, const QCString &name,const QCString &anchor, bool addToIndex=TRUE,bool preventSeparateIndex=FALSE) { - bool hasMembers = def->getMemberLists().count()>0 || !def->getMemberGroups().empty(); + bool hasMembers = !def->getMemberLists().empty() || !def->getMemberGroups().empty(); Doxygen::indexList->addContentsItem(hasMembers,name, def->getReference(),def->getOutputFileBase(),anchor, hasMembers && !preventSeparateIndex, @@ -3759,13 +3759,11 @@ static void writeGroupTreeNode(OutputList &ol, const GroupDef *gd, int level, FT size_t numSubItems = 0; if (1 /*Config_getBool(TOC_EXPAND)*/) { - QListIterator<MemberList> mli(gd->getMemberLists()); - MemberList *ml; - for (mli.toFirst();(ml=mli.current());++mli) + for (const auto &ml : gd->getMemberLists()) { - if (ml->listType()&MemberListType_documentationLists) + if (ml.listType()&MemberListType_documentationLists) { - numSubItems += ml->count(); + numSubItems += ml.count(); } } numSubItems += gd->getNamespaces().size(); |