summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-04 16:08:58 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-04 16:08:58 (GMT)
commit5d980fa30b6524d3d53867e6fd8d6edb67a37eeb (patch)
treecf6e29619f2d74f6a344b8b4da45d2a504687265 /src/xmlgen.cpp
parent19713dcc51ceb3930770cb25ec85590b86316cf7 (diff)
downloadDoxygen-5d980fa30b6524d3d53867e6fd8d6edb67a37eeb.zip
Doxygen-5d980fa30b6524d3d53867e6fd8d6edb67a37eeb.tar.gz
Doxygen-5d980fa30b6524d3d53867e6fd8d6edb67a37eeb.tar.bz2
Refactoring: avoid copying MemberLists by not embedding them directly
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 1831a98..5a7eabd 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1363,9 +1363,9 @@ static void generateXMLForClass(const ClassDef *cd,FTextStream &ti)
for (const auto &ml : cd->getMemberLists())
{
- if ((ml.listType()&MemberListType_detailedLists)==0)
+ if ((ml->listType()&MemberListType_detailedLists)==0)
{
- generateXMLSection(cd,ti,t,&ml,g_xmlSectionMapper.find(ml.listType()));
+ generateXMLSection(cd,ti,t,ml.get(),g_xmlSectionMapper.find(ml->listType()));
}
}
@@ -1460,9 +1460,9 @@ static void generateXMLForNamespace(const NamespaceDef *nd,FTextStream &ti)
for (const auto &ml : nd->getMemberLists())
{
- if ((ml.listType()&MemberListType_declarationLists)!=0)
+ if ((ml->listType()&MemberListType_declarationLists)!=0)
{
- generateXMLSection(nd,ti,t,&ml,g_xmlSectionMapper.find(ml.listType()));
+ generateXMLSection(nd,ti,t,ml.get(),g_xmlSectionMapper.find(ml->listType()));
}
}
@@ -1584,9 +1584,9 @@ static void generateXMLForFile(FileDef *fd,FTextStream &ti)
for (const auto &ml : fd->getMemberLists())
{
- if ((ml.listType()&MemberListType_declarationLists)!=0)
+ if ((ml->listType()&MemberListType_declarationLists)!=0)
{
- generateXMLSection(fd,ti,t,&ml,g_xmlSectionMapper.find(ml.listType()));
+ generateXMLSection(fd,ti,t,ml.get(),g_xmlSectionMapper.find(ml->listType()));
}
}
@@ -1657,9 +1657,9 @@ static void generateXMLForGroup(const GroupDef *gd,FTextStream &ti)
for (const auto &ml : gd->getMemberLists())
{
- if ((ml.listType()&MemberListType_declarationLists)!=0)
+ if ((ml->listType()&MemberListType_declarationLists)!=0)
{
- generateXMLSection(gd,ti,t,&ml,g_xmlSectionMapper.find(ml.listType()));
+ generateXMLSection(gd,ti,t,ml.get(),g_xmlSectionMapper.find(ml->listType()));
}
}