summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-23 15:07:03 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-23 15:07:03 (GMT)
commit11f0c2e3735e4736a5ade8468a356ebc2fc2840d (patch)
tree595cf6bff7cb285959a2e84c145eac82522ea974 /src/searchindex.cpp
parentbf5c2ac20e42f440ae0199d4d809b9d5e7e22191 (diff)
downloadDoxygen-11f0c2e3735e4736a5ade8468a356ebc2fc2840d.zip
Doxygen-11f0c2e3735e4736a5ade8468a356ebc2fc2840d.tar.gz
Doxygen-11f0c2e3735e4736a5ade8468a356ebc2fc2840d.tar.bz2
Refactoring: replace NamespaceSDict by NamespaceLinkedMap
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r--src/searchindex.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index 209cdea..42601b9 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -771,15 +771,13 @@ void createJavaScriptSearchIndex()
}
// index namespaces
- NamespaceSDict::Iterator nli(*Doxygen::namespaceSDict);
- NamespaceDef *nd;
- for (;(nd=nli.current());++nli)
+ for (const auto &nd : *Doxygen::namespaceLinkedMap)
{
uint letter = getUtf8CodeToLower(nd->name(),0);
if (nd->isLinkable() && isId(letter))
{
- g_searchIndexInfo[SEARCH_INDEX_ALL].symbolList.append(letter,nd);
- g_searchIndexInfo[SEARCH_INDEX_NAMESPACES].symbolList.append(letter,nd);
+ g_searchIndexInfo[SEARCH_INDEX_ALL].symbolList.append(letter,nd.get());
+ g_searchIndexInfo[SEARCH_INDEX_NAMESPACES].symbolList.append(letter,nd.get());
}
}