diff options
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r-- | src/tagreader.cpp | 41 |
1 files changed, 11 insertions, 30 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp index 3edb09f..1637044 100644 --- a/src/tagreader.cpp +++ b/src/tagreader.cpp @@ -857,36 +857,17 @@ void TagFileParser::addDocAnchors(Entry *e,QStrList &l) while (s) { QCString *anchorName = new QCString(s); - //if (anchorName->left(5)=="_todo") - //{ - // int todoItemId = todoList.addRefItem(); - // char anchorLabel[12]; - // sprintf(anchorLabel,"_todo%06d",todoItemId); - // RefItem *item = todoList.getRefItem(todoItemId); - // item->listAnchor = anchorLabel; - //} - //else if (anchorName->left(5)=="_test") - //{ - // int testItemId = testList.addRefItem(); - // char anchorLabel[12]; - // sprintf(anchorLabel,"_test%06d",testItemId); - // RefItem *item = testList.getRefItem(testItemId); - // item->listAnchor = anchorLabel; - //} - //else - //{ - if (Doxygen::sectionDict.find(*anchorName)==0) - { - SectionInfo *si=new SectionInfo(*anchorName,*anchorName, - SectionInfo::Anchor,m_tagName); - Doxygen::sectionDict.insert(*anchorName,si); - e->anchors->append(anchorName); - } - else - { - err("Duplicate anchor %s found\n",anchorName->data()); - } - //} + if (Doxygen::sectionDict.find(*anchorName)==0) + { + SectionInfo *si=new SectionInfo(e->fileName,*anchorName,*anchorName, + SectionInfo::Anchor,m_tagName); + Doxygen::sectionDict.insert(*anchorName,si); + e->anchors->append(anchorName); + } + else + { + err("Duplicate anchor %s found\n",anchorName->data()); + } s=l.next(); } } |