summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-31 21:06:11 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-31 21:06:11 (GMT)
commitb6bf2aa567a12a0c4011470e53b0a1740b6eb796 (patch)
treee5ab649cfa1c8f00107c7bfbc789aa5763c33d02 /src/util.cpp
parent6675be21d5085d97b2167959573bc71e42dd93b8 (diff)
downloadDoxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.zip
Doxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.tar.gz
Doxygen-b6bf2aa567a12a0c4011470e53b0a1740b6eb796.tar.bz2
Refactoring: replace Doxygen::groupSDict by Doxygen::groupLinkedMap
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 0f195c2..b7fedc3 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -3037,7 +3037,7 @@ bool resolveRef(/* in */ const char *scName,
// md->name().data(),md,md->anchor().data(),md->isLinkable(),(*resContext)->name().data());
return TRUE;
}
- else if (inSeeBlock && !nameStr.isEmpty() && (gd=Doxygen::groupSDict->find(nameStr)))
+ else if (inSeeBlock && !nameStr.isEmpty() && (gd=Doxygen::groupLinkedMap->find(nameStr)))
{ // group link
*resContext=gd;
return TRUE;
@@ -3214,7 +3214,7 @@ bool resolveLink(/* in */ const char *scName,
*resContext=pd;
return TRUE;
}
- else if ((gd=Doxygen::groupSDict->find(linkRef))) // link to a group
+ else if ((gd=Doxygen::groupLinkedMap->find(linkRef))) // link to a group
{
*resContext=gd;
return TRUE;
@@ -5034,8 +5034,7 @@ void addRefItem(const RefItemVector &sli,
bool recursivelyAddGroupListToTitle(OutputList &ol,const Definition *d,bool root)
{
- GroupList *groups = d->partOfGroups();
- if (groups) // write list of group to which this definition belongs
+ if (!d->partOfGroups().empty()) // write list of group to which this definition belongs
{
if (root)
{
@@ -5043,10 +5042,8 @@ bool recursivelyAddGroupListToTitle(OutputList &ol,const Definition *d,bool root
ol.disableAllBut(OutputGenerator::Html);
ol.writeString("<div class=\"ingroups\">");
}
- GroupListIterator gli(*groups);
- GroupDef *gd;
bool first=true;
- for (gli.toFirst();(gd=gli.current());++gli)
+ for (const auto &gd : d->partOfGroups())
{
if (!first) { ol.writeString(" &#124; "); } else first=false;
if (recursivelyAddGroupListToTitle(ol, gd, FALSE))