summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/util.cpp b/src/util.cpp
index ef1e709..2ec2ff0 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -480,7 +480,7 @@ QCString resolveTypeDef(const Definition *context,const QCString &qualifiedName,
ClassDef *getClass(const char *n)
{
if (n==0 || n[0]=='\0') return 0;
- return Doxygen::classSDict->find(n);
+ return Doxygen::classLinkedMap->find(n);
}
NamespaceDef *getResolvedNamespace(const char *name)
@@ -6980,34 +6980,29 @@ bool namespaceHasNestedClass(const NamespaceDef *nd,bool filterClasses,ClassDef:
}
}
- const ClassSDict *d = nd->getClassSDict();
+ ClassLinkedRefMap list = nd->getClasses();
if (filterClasses)
{
if (ct == ClassDef::Interface)
{
- d = nd->getInterfaceSDict();
+ list = nd->getInterfaces();
}
else if (ct == ClassDef::Struct)
{
- d = nd->getStructSDict();
+ list = nd->getStructs();
}
else if (ct == ClassDef::Exception)
{
- d = nd->getExceptionSDict();
+ list = nd->getExceptions();
}
}
- if (d)
+ for (const auto &cd : list)
{
- ClassSDict::Iterator cli(*d);
- const ClassDef *cd;
- for (;(cd=cli.current());++cli)
+ if (cd->isLinkableInProject() && cd->templateMaster()==0)
{
- if (cd->isLinkableInProject() && cd->templateMaster()==0)
- {
- //printf("<namespaceHasVisibleChild(%s,includeClasses=%d): case3\n",nd->name().data(),includeClasses);
- return TRUE;
- }
+ //printf("<namespaceHasVisibleChild(%s,includeClasses=%d): case3\n",nd->name().data(),includeClasses);
+ return TRUE;
}
}
return FALSE;