From 1c9096bc72f1b21d3090650d81c4ce3f78279a82 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 2 Jan 2021 20:59:06 +0100 Subject: Refactoring: replace type of pack variable from SDict to StringSet --- src/vhdldocgen.cpp | 8 +++----- 1 file 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 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) -- cgit v0.12