diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-10-05 18:49:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-10-05 18:49:14 (GMT) |
commit | a139a43323607b05f0f749d3c7d8734bb7a47768 (patch) | |
tree | 358599c9b5f7120aab981ab203f8581dc71962d0 /src/groupdef.cpp | |
parent | aaf87cb6d6601d665a06dc4556da4ce10c98e127 (diff) | |
download | Doxygen-a139a43323607b05f0f749d3c7d8734bb7a47768.zip Doxygen-a139a43323607b05f0f749d3c7d8734bb7a47768.tar.gz Doxygen-a139a43323607b05f0f749d3c7d8734bb7a47768.tar.bz2 |
Release-1.3.4-20031005
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r-- | src/groupdef.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp index 0f87ab8..e2e1940 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -198,6 +198,7 @@ bool GroupDef::insertMember(MemberDef *md,bool docOnly) for ( ; (srcMi=srcMnii.current()) ; ++srcMnii ) { MemberDef *srcMd = srcMi->memberDef; + if (srcMd==md) return FALSE; // already added before! bool sameScope = srcMd->getOuterScope()==md->getOuterScope() || // same class or namespace // both inside a file => definition and declaration do not have to be in the same file @@ -208,8 +209,15 @@ bool GroupDef::insertMember(MemberDef *md,bool docOnly) sameScope ) { - md->setGroupAlias(srcMd); - return FALSE; // member already added + if (srcMd->getGroupAlias()==0) + { + md->setGroupAlias(srcMd); + } + else + { + md->setGroupAlias(srcMd->getGroupAlias()); + } + return FALSE; // member is the same as one that is already added } } mni->append(new MemberInfo(md,md->protection(),md->virtualness(),FALSE)); |