diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-04-21 13:56:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-04-21 13:56:37 (GMT) |
commit | 2eef94da7bc476987b1a46690bbdaeb76a05dd82 (patch) | |
tree | 3db0b381fb31e078de0540249c869667f44ec68d /src/util.cpp | |
parent | 7e0aeda8a19448b44750f2530864432c964b0374 (diff) | |
download | Doxygen-2eef94da7bc476987b1a46690bbdaeb76a05dd82.zip Doxygen-2eef94da7bc476987b1a46690bbdaeb76a05dd82.tar.gz Doxygen-2eef94da7bc476987b1a46690bbdaeb76a05dd82.tar.bz2 |
Release-1.3-20030421
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/util.cpp b/src/util.cpp index 6a5517e..cc4a8aa 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -2934,7 +2934,7 @@ QCString substituteKeywords(const QCString &s,const char *title) */ int getPrefixIndex(const QCString &name) { - //printf("getPrefixIndex(%s) ni=%d\n",name.data(),ni); + if (name.isEmpty()) return 0; QStrList &sl = Config_getList("IGNORE_PREFIX"); char *s = sl.first(); while (s) @@ -3624,16 +3624,16 @@ PageInfo *addRelatedPage(const char *name,const QCString &ptitle, if (sli) { - if (pi->specialListItems==0) + if (pi->xrefListItems==0) { - pi->specialListItems=new QList<ListItemInfo>; - pi->specialListItems->setAutoDelete(TRUE); + pi->xrefListItems=new QList<ListItemInfo>; + pi->xrefListItems->setAutoDelete(TRUE); } QListIterator<ListItemInfo> slii(*sli); ListItemInfo *lii; for (slii.toFirst();(lii=slii.current());++slii) { - pi->specialListItems->append(new ListItemInfo(*lii)); + pi->xrefListItems->append(new ListItemInfo(*lii)); } } @@ -3700,10 +3700,16 @@ void addRefItem(const QList<ListItemInfo> *sli, ListItemInfo *lii; for (slii.toFirst();(lii=slii.current());++slii) { - RefList *refList = Doxygen::specialLists->find(lii->type); - ASSERT(refList!=0); - - if (Config_getBool(refList->optionName())) + RefList *refList = Doxygen::xrefLists->find(lii->type); + if (refList && + ( + // either not a built-in list or the list is enabled + (lii->type!="todo" || Config_getBool("GENERATE_TODOLIST")) && + (lii->type!="test" || Config_getBool("GENERATE_TESTLIST")) && + (lii->type!="bug" || Config_getBool("GENERATE_BUGLIST")) && + (lii->type!="deprecated" || Config_getBool("GENERATE_DEPRECATEDLIST")) + ) + ) { RefItem *item = refList->getRefItem(lii->itemId); ASSERT(item!=0); |