summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-04 14:24:36 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-04 14:24:36 (GMT)
commitd37c654efbd5bb4ea19e1997d1daccb0b01de8b3 (patch)
treeea18824650a130140b8f922804f68d3ec5227af1 /src/filedef.cpp
parentef5be2c99caa8e5fbc1cec3ec53e91b2c929f613 (diff)
downloadDoxygen-d37c654efbd5bb4ea19e1997d1daccb0b01de8b3.zip
Doxygen-d37c654efbd5bb4ea19e1997d1daccb0b01de8b3.tar.gz
Doxygen-d37c654efbd5bb4ea19e1997d1daccb0b01de8b3.tar.bz2
Refactoring: Embed MemberGroup objects directly in their container
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index 917af49..d98594c 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -280,9 +280,9 @@ void FileDefImpl::computeAnchors()
void FileDefImpl::distributeMemberGroupDocumentation()
{
//printf("FileDefImpl::distributeMemberGroupDocumentation()\n");
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- mg->distributeMemberGroupDocumentation();
+ mg.distributeMemberGroupDocumentation();
}
}
@@ -290,9 +290,9 @@ void FileDefImpl::findSectionsInDocumentation()
{
docFindSections(briefDescription(),this,docFile());
docFindSections(documentation(),this,docFile());
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- mg->findSectionsInDocumentation(this);
+ mg.findSectionsInDocumentation(this);
}
for (auto &ml : m_memberLists)
@@ -395,9 +395,9 @@ void FileDefImpl::writeTagFile(FTextStream &tagFile)
break;
case LayoutDocEntry::MemberGroups:
{
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- mg->writeTagFile(tagFile);
+ mg.writeTagFile(tagFile);
}
}
break;
@@ -732,10 +732,10 @@ void FileDefImpl::writeMemberGroups(OutputList &ol)
/* write user defined member groups */
for (const auto &mg : m_memberGroups)
{
- if ((!mg->allMembersInSameSection() || !m_subGrouping)
- && mg->header()!="[NOHEADER]")
+ if ((!mg.allMembersInSameSection() || !m_subGrouping)
+ && mg.header()!="[NOHEADER]")
{
- mg->writeDeclarations(ol,0,0,this,0);
+ mg.writeDeclarations(ol,0,0,this,0);
}
}
}
@@ -1247,12 +1247,12 @@ void FileDefImpl::addMembersToMemberGroup()
}
// add members inside sections to their groups
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- if (mg->allMembersInSameSection() && m_subGrouping)
+ if (mg.allMembersInSameSection() && m_subGrouping)
{
//printf("----> addToDeclarationSection(%s)\n",mg->header().data());
- mg->addToDeclarationSection();
+ mg.addToDeclarationSection();
}
}
}
@@ -1529,9 +1529,9 @@ void FileDefImpl::addListReferences()
0
);
}
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- mg->addListReferences(this);
+ mg.addListReferences(this);
}
for (auto &ml : m_memberLists)
{
@@ -1907,9 +1907,9 @@ void FileDefImpl::sortMemberLists()
if (ml.needsSorting()) { ml.sort(); ml.setNeedsSorting(FALSE); }
}
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- MemberList *mlg = mg->members();
+ MemberList *mlg = mg.members();
if (mlg->needsSorting()) { mlg->sort(); mlg->setNeedsSorting(FALSE); }
}
@@ -2032,10 +2032,10 @@ void FileDefImpl::countMembers()
ml.countDecMembers();
ml.countDocMembers();
}
- for (const auto &mg : m_memberGroups)
+ for (auto &mg : m_memberGroups)
{
- mg->countDecMembers();
- mg->countDocMembers();
+ mg.countDecMembers();
+ mg.countDocMembers();
}
}