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/marshal.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/marshal.cpp')
-rw-r--r-- | src/marshal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/marshal.cpp b/src/marshal.cpp index a6b3e75..04f426d 100644 --- a/src/marshal.cpp +++ b/src/marshal.cpp @@ -139,6 +139,7 @@ void marshalSectionInfoList(StorageIntf *s, QList<SectionInfo> *anchors) marshalQCString(s,si->ref); marshalInt(s,(int)si->type); marshalQCString(s,si->fileName); + marshalInt(s,si->lineNr); marshalInt(s,si->level); } } @@ -546,8 +547,9 @@ QList<SectionInfo> *unmarshalSectionInfoList(StorageIntf *s) QCString ref = unmarshalQCString(s); SectionInfo::SectionType type = (SectionInfo::SectionType)unmarshalInt(s); QCString fileName = unmarshalQCString(s); + int lineNr = unmarshalInt(s); int level = unmarshalInt(s); - result->append(new SectionInfo(fileName,label,title,type,level,ref)); + result->append(new SectionInfo(fileName,lineNr,label,title,type,level,ref)); } return result; } |