diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/src/util.cpp b/src/util.cpp index e73b45b..25b00e4 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -3102,7 +3102,8 @@ const char *getOverloadDocs() "function only in what argument(s) it accepts."; } -void addMembersToMemberGroup(MemberList *ml,MemberGroupSDict *memberGroupSDict) +void addMembersToMemberGroup(MemberList *ml, + MemberGroupSDict *memberGroupSDict,Definition *context) { MemberListIterator mli(*ml); MemberDef *md; @@ -3122,19 +3123,30 @@ void addMembersToMemberGroup(MemberList *ml,MemberGroupSDict *memberGroupSDict) mg = new MemberGroup(groupId,*pGrpHeader,pDocs ? pDocs->data() : 0); memberGroupSDict->append(groupId,mg); } - md = ml->take(index); - mg->insertMember(md); + md = ml->take(index); // remove from member list + //if (allMembers) // remove from all member list as well + //{ + // MemberNameInfo *mni = allMembers->find(md->name()); + // if (mni) + // { + // QListIterator<MemberInfo> mii(*mni); + // MemberInfo *mi; + // for (;(mi=mii.current());++mii) + // { + // if (mi->memberDef==md) + // { + // mni->remove(mi); + // break; + // } + // } + // } + //} + mg->insertMember(context,md); // insert in member group md->setMemberGroup(mg); + continue; } - else - { - ++mli;++index; - } - } - else - { - ++mli;++index; } + ++mli;++index; } } |