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/defgen.cpp | |
parent | 0252f61004cada8f9e10644b850dd6ba47d61438 (diff) | |
download | Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.zip Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.tar.gz Doxygen-ef5be2c99caa8e5fbc1cec3ec53e91b2c929f613.tar.bz2 |
Refactoring: modernize getMemberLists()
Diffstat (limited to 'src/defgen.cpp')
-rw-r--r-- | src/defgen.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/defgen.cpp b/src/defgen.cpp index a1cd28d..4e2eb88 100644 --- a/src/defgen.cpp +++ b/src/defgen.cpp @@ -392,13 +392,11 @@ void generateDEFForClass(ClassDef *cd,FTextStream &t) } int numMembers = 0; - QListIterator<MemberList> mli(cd->getMemberLists()); - MemberList *ml; - for (mli.toFirst();(ml=mli.current());++mli) + for (const auto &ml : cd->getMemberLists()) { - if ((ml->listType()&MemberListType_detailedLists)==0) + if ((ml.listType()&MemberListType_detailedLists)==0) { - numMembers+=ml->count(); + numMembers+=ml.count(); } } if (numMembers>0) |