summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-01-02 19:59:06 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-01-02 19:59:06 (GMT)
commit1c9096bc72f1b21d3090650d81c4ce3f78279a82 (patch)
treed22f2c24cccd1ea70568934f039be28ddca3a30c
parent941bcb4a363771c85d4c1d748db2cba0df1bcaf4 (diff)
downloadDoxygen-1c9096bc72f1b21d3090650d81c4ce3f78279a82.zip
Doxygen-1c9096bc72f1b21d3090650d81c4ce3f78279a82.tar.gz
Doxygen-1c9096bc72f1b21d3090650d81c4ce3f78279a82.tar.bz2
Refactoring: replace type of pack variable from SDict<QCString> to StringSet
-rw-r--r--src/vhdldocgen.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp
index e3673fd..7afc832 100644
--- a/src/vhdldocgen.cpp
+++ b/src/vhdldocgen.cpp
@@ -2123,8 +2123,7 @@ void VhdlDocGen::writePlainVHDLDeclarations(
const ClassDef *cd,const NamespaceDef *nd,const FileDef *fd,const GroupDef *gd,int specifier)
{
- SDict<QCString> pack(1009);
- pack.setAutoDelete(TRUE);
+ StringSet pack;
bool first=TRUE;
MemberDef *imd;
@@ -2142,17 +2141,16 @@ void VhdlDocGen::writePlainVHDLDeclarations(
} //if
else if (md->isBriefSectionVisible() && (mems==specifier))
{
- if (!pack.find(md->name().data()))
+ if (pack.find(md->name().str())==pack.end())
{
if (first) ol.startMemberList(),first=FALSE;
VhdlDocGen::writeVHDLDeclaration(md,ol,cd,nd,fd,gd,FALSE);
- pack.append(md->name().data(),new QCString(md->name().data()));
+ pack.insert(md->name().str());
}
} //if
} //if
} //for
if (!first) ol.endMemberList();
- pack.clear();
}//plainDeclaration
static bool membersHaveSpecificType(const MemberList *ml,uint64 type)