summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-03-01 09:47:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-03-01 09:47:50 (GMT)
commit9d83d43f0d8b7058e2f89371a6ab276c06ddaa47 (patch)
tree9ab454eca011617580330d63730c5b48bdb7a945 /addon
parent25e30224977bd488c33c6f84d6cad1c5eca5e62a (diff)
downloadDoxygen-9d83d43f0d8b7058e2f89371a6ab276c06ddaa47.zip
Doxygen-9d83d43f0d8b7058e2f89371a6ab276c06ddaa47.tar.gz
Doxygen-9d83d43f0d8b7058e2f89371a6ab276c06ddaa47.tar.bz2
Regression on Definition and derived classes that are abstract interfaces
In the doxyapp a number of casts were not corrected.
Diffstat (limited to 'addon')
-rw-r--r--addon/doxyapp/doxyapp.cpp14
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;