diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-02 10:57:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-02 10:57:36 (GMT) |
commit | ad20eb372dae57b6fb07b295daa816fdeb783ccd (patch) | |
tree | 9ab454eca011617580330d63730c5b48bdb7a945 | |
parent | 25e30224977bd488c33c6f84d6cad1c5eca5e62a (diff) | |
parent | 9d83d43f0d8b7058e2f89371a6ab276c06ddaa47 (diff) | |
download | Doxygen-ad20eb372dae57b6fb07b295daa816fdeb783ccd.zip Doxygen-ad20eb372dae57b6fb07b295daa816fdeb783ccd.tar.gz Doxygen-ad20eb372dae57b6fb07b295daa816fdeb783ccd.tar.bz2 |
Merge pull request #6862 from albert-github/feature/bug_abstract_intf_regression
Regression on Definition and derived classes that are abstract interfaces
-rw-r--r-- | addon/doxyapp/doxyapp.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/addon/doxyapp/doxyapp.cpp b/addon/doxyapp/doxyapp.cpp index 45e71fc..1249871 100644 --- a/addon/doxyapp/doxyapp.cpp +++ b/addon/doxyapp/doxyapp.cpp @@ -76,15 +76,15 @@ class XRefDummyCodeGenerator : public CodeOutputInterface // it is inside a member of a class { ctx.sprintf("inside %s %s of %s %s", - ((MemberDef *)context)->memberTypeName().data(), + (dynamic_cast<MemberDef*>(context))->memberTypeName().data(), context->name().data(), - ((ClassDef*)parentContext)->compoundTypeString().data(), + (dynamic_cast<ClassDef*>(parentContext))->compoundTypeString().data(), parentContext->name().data()); } else if (parentContext==Doxygen::globalScope) // it is inside a global member { ctx.sprintf("inside %s %s", - ((MemberDef *)context)->memberTypeName().data(), + (dynamic_cast<MemberDef*>(context))->memberTypeName().data(), context->name().data()); } } @@ -185,20 +185,20 @@ static void lookupSymbol(Definition *d) { case Definition::TypeClass: { - ClassDef *cd = (ClassDef *)d; + ClassDef *cd = dynamic_cast<ClassDef*>(d); printf("Kind: %s\n",cd->compoundTypeString().data()); } break; case Definition::TypeFile: { - FileDef *fd = (FileDef *)d; + FileDef *fd = dynamic_cast<FileDef*>(d); printf("Kind: File: #includes %d other files\n", fd->includeFileList() ? fd->includeFileList()->count() : 0); } break; case Definition::TypeNamespace: { - NamespaceDef *nd = (NamespaceDef *)d; + NamespaceDef *nd = dynamic_cast<NamespaceDef*>(d); printf("Kind: Namespace: contains %d classes and %d namespaces\n", nd->getClassSDict() ? nd->getClassSDict()->count() : 0, nd->getNamespaceSDict() ? nd->getNamespaceSDict()->count() : 0); @@ -206,7 +206,7 @@ static void lookupSymbol(Definition *d) break; case Definition::TypeMember: { - MemberDef *md = (MemberDef *)d; + MemberDef *md = dynamic_cast<MemberDef*>(d); printf("Kind: %s\n",md->memberTypeName().data()); } break; |