summaryrefslogtreecommitdiffstats
path: root/src/groupdef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-07-16 20:10:06 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-07-16 20:10:06 (GMT)
commit3a7dcb4cbc953fcf5ab62243743707e5e0e3d379 (patch)
treef167dcd5d5f9dcea2ade9e968e78c2a085f0f1fd /src/groupdef.cpp
parent07ee85ebcc91a12df8a92078f33e700e5f9f40e8 (diff)
downloadDoxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.zip
Doxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.tar.gz
Doxygen-3a7dcb4cbc953fcf5ab62243743707e5e0e3d379.tar.bz2
Release-1.4.7-20060716
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r--src/groupdef.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp
index d0ce1cc..7aee5c0 100644
--- a/src/groupdef.cpp
+++ b/src/groupdef.cpp
@@ -183,13 +183,13 @@ void GroupDef::addExample(const PageDef *def)
void GroupDef::addMembersToMemberGroup()
{
- ::addMembersToMemberGroup(&decDefineMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decProtoMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decTypedefMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decEnumMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decEnumValMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decFuncMembers,memberGroupSDict,this);
- ::addMembersToMemberGroup(&decVarMembers,memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decDefineMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decProtoMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decTypedefMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decEnumMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decEnumValMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decFuncMembers,&memberGroupSDict,this);
+ ::addMembersToMemberGroup(&decVarMembers,&memberGroupSDict,this);
//printf("GroupDef::addMembersToMemberGroup() memberGroupList=%d\n",memberGroupList->count());
MemberGroupSDict::Iterator mgli(*memberGroupSDict);
@@ -413,12 +413,12 @@ void GroupDef::removeMember(MemberDef *md)
bool GroupDef::containsGroup(const GroupDef *def)
{
- return groupList->find(def) >= 0;
+ return this==def || groupList->find(def) >= 0;
}
void GroupDef::addGroup(const GroupDef *def)
{
- //printf("adding group `%s' to group `%s'\n",def->name().data(),name().data());
+ printf("adding group `%s' to group `%s'\n",def->name().data(),name().data());
//if (Config_getBool("SORT_MEMBER_DOCS"))
// groupList->inSort(def);
//else
@@ -427,7 +427,7 @@ void GroupDef::addGroup(const GroupDef *def)
bool GroupDef::isASubGroup() const
{
- return m_partOfGroups && m_partOfGroups->count()!=0;
+ return partOfGroups() && partOfGroups()->count()!=0;
}
int GroupDef::countMembers() const
@@ -872,6 +872,8 @@ void addDirToGroups(Entry *root,DirDef *dd)
void addGroupToGroups(Entry *root,GroupDef *subGroup)
{
+ printf("addGroupToGroups for %s groups=%d\n",root->name.data(),
+ root->groups?root->groups->count():-1);
QListIterator<Grouping> gli(*root->groups);
Grouping *g;
for (;(g=gli.current());++gli)