summaryrefslogtreecommitdiffstats
path: root/src/docsets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/docsets.cpp')
-rw-r--r--src/docsets.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docsets.cpp b/src/docsets.cpp
index 1327d80..1d79c9d 100644
--- a/src/docsets.cpp
+++ b/src/docsets.cpp
@@ -432,15 +432,15 @@ void DocSets::addIndexItem(Definition *context,MemberDef *md,
{
if (fd==0 && context->definitionType()==Definition::TypeFile)
{
- fd = (FileDef*)context;
+ fd = dynamic_cast<FileDef*>(context);
}
if (cd==0 && context->definitionType()==Definition::TypeClass)
{
- cd = (ClassDef*)context;
+ cd = dynamic_cast<ClassDef*>(context);
}
if (nd==0 && context->definitionType()==Definition::TypeNamespace)
{
- nd = (NamespaceDef*)context;
+ nd = dynamic_cast<NamespaceDef*>(context);
}
if (fd)
{