diff options
author | albert-github <albert.tests@gmail.com> | 2014-03-02 19:32:42 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-03-02 19:32:42 (GMT) |
commit | ac611be473c2d9bf65bcafb53b0577274c4ae706 (patch) | |
tree | 3fa0e5b2798121b937fce6169d6a23e2575d4e1d /src/tagreader.cpp | |
parent | 8eeaae0b06fd320745f22efe176e0f19d6c8e2a6 (diff) | |
download | Doxygen-ac611be473c2d9bf65bcafb53b0577274c4ae706.zip Doxygen-ac611be473c2d9bf65bcafb53b0577274c4ae706.tar.gz Doxygen-ac611be473c2d9bf65bcafb53b0577274c4ae706.tar.bz2 |
In case of sections with the same name they are not reported.
In this patch it is checked if a section label has been used before and if so a warning is given with file name and line number (when possible) where the section label was used the first time.
Note in section.h the item level was not initialized in the past in case of a copy constructor.
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r-- | src/tagreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp index 467781a..036e24f 100644 --- a/src/tagreader.cpp +++ b/src/tagreader.cpp @@ -1120,7 +1120,7 @@ void TagFileParser::addDocAnchors(Entry *e,const TagAnchorInfoList &l) { //printf("New sectionInfo file=%s anchor=%s\n", // ta->fileName.data(),ta->label.data()); - SectionInfo *si=new SectionInfo(ta->fileName,ta->label,ta->title, + SectionInfo *si=new SectionInfo(ta->fileName,-1,ta->label,ta->title, SectionInfo::Anchor,0,m_tagName); Doxygen::sectionDict->append(ta->label,si); e->anchors->append(si); |