diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
commit | b70a5b4f9325ec703db37394feeaa9ebc11228b4 (patch) | |
tree | 2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/classdef.cpp | |
parent | 8375a55083e5232e65493e73cb594c9c5e9552ab (diff) | |
download | Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.zip Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.gz Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.bz2 |
Release-1.5.9-20090622
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 198fc4d..168162b 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -294,7 +294,7 @@ QCString ClassDef::displayName() const } if (m_impl->compType==ClassDef::Protocol && n.right(2)=="-p") { - n="< "+n.left(n.length()-2)+" >"; + n="<"+n.left(n.length()-2)+">"; } return n; } @@ -1442,11 +1442,11 @@ void ClassDef::writeDocumentation(OutputList &ol) } } - if (Config_getBool("SEARCHENGINE")) - { - Doxygen::searchIndex->setCurrentDoc(pageTitle,getOutputFileBase()); - Doxygen::searchIndex->addWord(localName(),TRUE); - } + //if (Config_getBool("SEARCHENGINE")) + //{ + // Doxygen::searchIndex->setCurrentDoc(pageTitle,getOutputFileBase()); + // Doxygen::searchIndex->addWord(localName(),TRUE); + //} bool exampleFlag=hasExamples(); //---------------------------------------- start flexible part ------------------------------- @@ -1801,7 +1801,9 @@ void ClassDef::writeMemberList(OutputList &ol) ol.writeObjectLink(cd->getReference(), cd->getOutputFileBase(), 0, - cd->displayName()); + md->category() ? + md->category()->displayName() : + cd->displayName()); ol.writeString("</td>"); ol.writeString("<td>"); } @@ -2146,7 +2148,6 @@ static bool isStandardFunc(MemberDef *md) * with that of this class. Must only be called for classes without * subclasses! */ - void ClassDef::mergeMembers() { if (m_impl->membersMerged) return; @@ -2398,6 +2399,7 @@ void ClassDef::mergeMembers() void ClassDef::mergeCategory(ClassDef *category) { category->setCategoryOf(this); + category->setArtificial(TRUE); MemberNameInfoSDict *srcMnd = category->memberNameInfoSDict(); MemberNameInfoSDict *dstMnd = m_impl->allMemberNameInfoSDict; @@ -2415,8 +2417,7 @@ void ClassDef::mergeCategory(ClassDef *category) } else // new method name { - // create a deep copy of the list (only the MemberInfo's will be - // copied, not the actual MemberDef's) + // create a deep copy of the list MemberNameInfo *newMni = 0; newMni = new MemberNameInfo(srcMni->memberName()); @@ -2425,12 +2426,15 @@ void ClassDef::mergeCategory(ClassDef *category) MemberInfo *mi; for (;(mi=mnii.current());++mnii) { - //printf("Adding!\n"); + //printf("Adding '%s'\n",mi->memberDef->name().data()); MemberInfo *newMi=new MemberInfo(mi->memberDef,mi->prot,mi->virt,mi->inherited); newMi->scopePath=mi->scopePath; newMi->ambigClass=mi->ambigClass; - newMi->ambiguityResolutionScope=mi->ambiguityResolutionScope.copy(); + newMi->ambiguityResolutionScope=mi->ambiguityResolutionScope; newMni->append(newMi); + mi->memberDef->moveTo(this); + mi->memberDef->setCategory(category); + internalInsertMember(mi->memberDef,mi->prot,FALSE); } // add it to the dictionary |