diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-31 19:32:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-31 19:32:37 (GMT) |
commit | 6675be21d5085d97b2167959573bc71e42dd93b8 (patch) | |
tree | a6b98396e3b6688df09ec3d449f7928380f8fe92 /src/searchindex.cpp | |
parent | da8c801a4d08baeee8007276c1f73f11c4a890ce (diff) | |
download | Doxygen-6675be21d5085d97b2167959573bc71e42dd93b8.zip Doxygen-6675be21d5085d97b2167959573bc71e42dd93b8.tar.gz Doxygen-6675be21d5085d97b2167959573bc71e42dd93b8.tar.bz2 |
Refactoring: replaced PageSDict by PageLinked*Map
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r-- | src/searchindex.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 0b2b219..7cb3afa 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -855,9 +855,7 @@ void createJavaScriptSearchIndex() } // index pages - PageSDict::Iterator pdi(*Doxygen::pageSDict); - PageDef *pd=0; - for (pdi.toFirst();(pd=pdi.current());++pdi) + for (const auto &pd : *Doxygen::pageLinkedMap) { if (pd->isLinkable()) { @@ -866,8 +864,8 @@ void createJavaScriptSearchIndex() { char letter[MAX_UTF8_CHAR_SIZE]; getUtf8Char(title,letter,CaseModifier::ToLower); - g_searchIndexInfo[SEARCH_INDEX_ALL].add(letter,pd); - g_searchIndexInfo[SEARCH_INDEX_PAGES].add(letter,pd); + g_searchIndexInfo[SEARCH_INDEX_ALL].add(letter,pd.get()); + g_searchIndexInfo[SEARCH_INDEX_PAGES].add(letter,pd.get()); } } } @@ -878,8 +876,8 @@ void createJavaScriptSearchIndex() { char letter[MAX_UTF8_CHAR_SIZE]; getUtf8Char(title,letter,CaseModifier::ToLower); - g_searchIndexInfo[SEARCH_INDEX_ALL].add(letter,Doxygen::mainPage); - g_searchIndexInfo[SEARCH_INDEX_PAGES].add(letter,Doxygen::mainPage); + g_searchIndexInfo[SEARCH_INDEX_ALL].add(letter,Doxygen::mainPage.get()); + g_searchIndexInfo[SEARCH_INDEX_PAGES].add(letter,Doxygen::mainPage.get()); } } |