diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-10-28 20:29:16 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-10-29 21:54:17 (GMT) |
commit | 94e8899c8013cf99a6f90d1c8f0a7815ccc3e1c3 (patch) | |
tree | c799c05e24cceb1fbbe3358fbab2760a3e7c9e10 /src/entry.cpp | |
parent | e8efa15a24b991332e2be0e44714d930d4d489a6 (diff) | |
download | Doxygen-94e8899c8013cf99a6f90d1c8f0a7815ccc3e1c3.zip Doxygen-94e8899c8013cf99a6f90d1c8f0a7815ccc3e1c3.tar.gz Doxygen-94e8899c8013cf99a6f90d1c8f0a7815ccc3e1c3.tar.bz2 |
Replaced QList<BaseInfo> with std::vector<BaseInfo>
Diffstat (limited to 'src/entry.cpp')
-rw-r--r-- | src/entry.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/entry.cpp b/src/entry.cpp index 22ff858..9a8d0dd 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -38,8 +38,6 @@ Entry::Entry() num++; m_parent=0; section = EMPTY_SEC; - extends = new QList<BaseInfo>; - extends->setAutoDelete(TRUE); groups = new QList<Grouping>; groups->setAutoDelete(TRUE); anchors = new QList<SectionInfo>; // Doxygen::sectionDict takes ownership of the items! @@ -103,8 +101,6 @@ Entry::Entry(const Entry &e) bodyLine = e.bodyLine; endBodyLine = e.endBodyLine; mGrpId = e.mGrpId; - extends = new QList<BaseInfo>; - extends->setAutoDelete(TRUE); groups = new QList<Grouping>; groups->setAutoDelete(TRUE); anchors = new QList<SectionInfo>; @@ -141,13 +137,7 @@ Entry::Entry(const Entry &e) m_sublist.push_back(std::make_unique<Entry>(*cur)); } - // deep copy base class list - QListIterator<BaseInfo> bli(*e.extends); - BaseInfo *bi; - for (;(bi=bli.current());++bli) - { - extends->append(new BaseInfo(*bi)); - } + extends = e.extends; // deep copy group list QListIterator<Grouping> gli(*e.groups); @@ -174,7 +164,6 @@ Entry::~Entry() //printf("Deleting entry %d name %s type %x children %d\n", // num,name.data(),section,sublist->count()); - delete extends; delete groups; delete anchors; delete sli; @@ -302,7 +291,7 @@ void Entry::reset() id.resize(0); metaData.resize(0); m_sublist.clear(); - extends->clear(); + extends.clear(); groups->clear(); anchors->clear(); argList.clear(); |