summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-31 19:32:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-31 19:32:37 (GMT)
commit6675be21d5085d97b2167959573bc71e42dd93b8 (patch)
treea6b98396e3b6688df09ec3d449f7928380f8fe92 /src/xmlgen.cpp
parentda8c801a4d08baeee8007276c1f73f11c4a890ce (diff)
downloadDoxygen-6675be21d5085d97b2167959573bc71e42dd93b8.zip
Doxygen-6675be21d5085d97b2167959573bc71e42dd93b8.tar.gz
Doxygen-6675be21d5085d97b2167959573bc71e42dd93b8.tar.bz2
Refactoring: replaced PageSDict by PageLinked*Map
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 7eb09f1..c005e03 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1180,21 +1180,16 @@ static void writeInnerFiles(const FileList *fl,FTextStream &t)
}
}
-static void writeInnerPages(const PageSDict *pl,FTextStream &t)
+static void writeInnerPages(const PageLinkedRefMap &pl,FTextStream &t)
{
- if (pl)
+ for (const auto &pd : pl)
{
- PageSDict::Iterator pli(*pl);
- PageDef *pd;
- for (pli.toFirst();(pd=pli.current());++pli)
+ t << " <innerpage refid=\"" << pd->getOutputFileBase();
+ if (pd->getGroupDef())
{
- t << " <innerpage refid=\"" << pd->getOutputFileBase();
- if (pd->getGroupDef())
- {
- t << "_" << pd->name();
- }
- t << "\">" << convertToXML(pd->title()) << "</innerpage>" << endl;
+ t << "_" << pd->name();
}
+ t << "\">" << convertToXML(pd->title()) << "</innerpage>" << endl;
}
}
@@ -1770,7 +1765,7 @@ static void generateXMLForPage(PageDef *pd,FTextStream &ti,bool isExample)
t << " <compoundname>" << convertToXML(pd->name())
<< "</compoundname>" << endl;
- if (pd==Doxygen::mainPage) // main page is special
+ if (pd==Doxygen::mainPage.get()) // main page is special
{
QCString title;
if (mainPageHasTitle())
@@ -1963,12 +1958,10 @@ void generateXML()
generateXMLForGroup(gd,t);
}
{
- PageSDict::Iterator pdi(*Doxygen::pageSDict);
- PageDef *pd=0;
- for (pdi.toFirst();(pd=pdi.current());++pdi)
+ for (const auto &pd : *Doxygen::pageLinkedMap)
{
msg("Generating XML output for page %s\n",pd->name().data());
- generateXMLForPage(pd,t,FALSE);
+ generateXMLForPage(pd.get(),t,FALSE);
}
}
{
@@ -1981,18 +1974,16 @@ void generateXML()
}
}
{
- PageSDict::Iterator pdi(*Doxygen::exampleSDict);
- PageDef *pd=0;
- for (pdi.toFirst();(pd=pdi.current());++pdi)
+ for (const auto &pd : *Doxygen::exampleLinkedMap)
{
msg("Generating XML output for example %s\n",pd->name().data());
- generateXMLForPage(pd,t,TRUE);
+ generateXMLForPage(pd.get(),t,TRUE);
}
}
if (Doxygen::mainPage)
{
msg("Generating XML output for the main page\n");
- generateXMLForPage(Doxygen::mainPage,t,FALSE);
+ generateXMLForPage(Doxygen::mainPage.get(),t,FALSE);
}
//t << " </compoundlist>" << endl;