diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-12 18:13:32 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-12 18:13:32 (GMT) |
commit | 86904d5b9752d35ff83bab14969314913f945d5b (patch) | |
tree | a205b9d8b40af012479b532e708766ec57e37a1f /src/doxygen.cpp | |
parent | c23cedcb1ff27094ea661776b783942d485669ef (diff) | |
download | Doxygen-86904d5b9752d35ff83bab14969314913f945d5b.zip Doxygen-86904d5b9752d35ff83bab14969314913f945d5b.tar.gz Doxygen-86904d5b9752d35ff83bab14969314913f945d5b.tar.bz2 |
Refactoring: Modernize BaseClassList
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 01a75b7..73c4b02 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -7348,7 +7348,7 @@ static void computeMemberRelations() if (md!=bmd) { const ClassDef *mcd = md->getClassDef(); - if (mcd && mcd->baseClasses()) + if (mcd && !mcd->baseClasses().empty()) { const ClassDef *bmcd = bmd->getClassDef(); //printf("Check relation between '%s'::'%s' (%p) and '%s'::'%s' (%p)\n", @@ -7469,8 +7469,8 @@ static void buildCompleteMemberLists() for (cli.toFirst();(cd=cli.current());++cli) { if (// !cd->isReference() && // not an external class - cd->subClasses()==0 && // is a root of the hierarchy - cd->baseClasses()) // and has at least one base class + cd->subClasses().empty() && // is a root of the hierarchy + !cd->baseClasses().empty()) // and has at least one base class { //printf("*** merging members for %s\n",cd->name().data()); cd->mergeMembers(); @@ -7648,20 +7648,14 @@ static void generateFileSources() } } // first wait until all files are processed - std::vector< std::shared_ptr<SourceContext> > syncedResults; for (auto &f : results) { - syncedResults.push_back(f.get()); - } - // next write all footers - for (auto &ctx : syncedResults) - { + auto ctx = f.get(); if (ctx->generateSourceFile) { ctx->fd->writeSourceFooter(ctx->ol); } } - #else // single threaded version for (const auto &fn : *Doxygen::inputNameLinkedMap) { |