summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-04-18 11:45:40 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-04-18 11:45:40 (GMT)
commit28fc7d1fce3cc8e7fa26e3760e8d8d79b9dd23a5 (patch)
tree3104ca2ea1f3e3f94cb54c99f8dde84745b497c2 /src/doxygen.cpp
parentf3ebc866c88b31ab393637e30189d41ddb7f84f0 (diff)
downloadDoxygen-28fc7d1fce3cc8e7fa26e3760e8d8d79b9dd23a5.zip
Doxygen-28fc7d1fce3cc8e7fa26e3760e8d8d79b9dd23a5.tar.gz
Doxygen-28fc7d1fce3cc8e7fa26e3760e8d8d79b9dd23a5.tar.bz2
Refactoring: changed Doxygen::expandAsDefinedDict to Doxygen::expandAsDefinedSet
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 56f395a..c59b075 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -136,7 +136,7 @@ FileNameLinkedMap *Doxygen::mscFileNameLinkedMap = 0; // msc files
FileNameLinkedMap *Doxygen::diaFileNameLinkedMap = 0; // dia files
StringDict Doxygen::namespaceAliasDict(257); // all namespace aliases
StringDict Doxygen::tagDestinationDict(257); // all tag locations
-QDict<void> Doxygen::expandAsDefinedDict(257); // all macros that should be expanded
+std::unordered_set<std::string> Doxygen::expandAsDefinedSet; // all macros that should be expanded
QIntDict<MemberGroupInfo> Doxygen::memGrpInfoDict(1009); // dictionary of the member groups heading
PageDef *Doxygen::mainPage = 0;
bool Doxygen::insideMainPage = FALSE; // are we generating docs for the main page?
@@ -275,8 +275,6 @@ void statistics()
Doxygen::tagDestinationDict.statistics();
fprintf(stderr,"--- g_compoundKeywordDict stats ----\n");
g_compoundKeywordDict.statistics();
- fprintf(stderr,"--- expandAsDefinedDict stats ----\n");
- Doxygen::expandAsDefinedDict.statistics();
fprintf(stderr,"--- memGrpInfoDict stats ----\n");
Doxygen::memGrpInfoDict.statistics();
}
@@ -10311,10 +10309,7 @@ void adjustConfiguration()
s=expandAsDefinedList.first();
while (s)
{
- if (Doxygen::expandAsDefinedDict[s]==0)
- {
- Doxygen::expandAsDefinedDict.insert(s,(void *)666);
- }
+ Doxygen::expandAsDefinedSet.insert(s);
s=expandAsDefinedList.next();
}