summaryrefslogtreecommitdiff
path: root/src/docsets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/docsets.cpp')
-rw-r--r--src/docsets.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/docsets.cpp b/src/docsets.cpp
index a18ac82..bc8f7a9 100644
--- a/src/docsets.cpp
+++ b/src/docsets.cpp
@@ -415,14 +415,10 @@ void DocSets::addIndexItem(const Definition *context,const MemberDef *md,
{
scope = nd->name();
}
- const MemberDef *declMd = md->memberDeclaration();
- if (declMd==0) declMd = md;
+ fd = md->getFileDef();
+ if (fd)
{
- fd = md->getFileDef();
- if (fd)
- {
- decl = fd->name();
- }
+ decl = fd->name();
}
writeToken(p->tts,md,type,lang,scope,md->anchor(),decl);
}