summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-10-26 19:41:56 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-10-28 20:32:40 (GMT)
commit0c0889e331305ea5b4f5c7a58c4a0e82da6111cd (patch)
treea24d567e9b80518ccd6fd9b77f0f3449c74ad8a1 /src/classdef.cpp
parent5f34e8ae667c24900e61c72e7dfc213d53a7cb05 (diff)
downloadDoxygen-0c0889e331305ea5b4f5c7a58c4a0e82da6111cd.zip
Doxygen-0c0889e331305ea5b4f5c7a58c4a0e82da6111cd.tar.gz
Doxygen-0c0889e331305ea5b4f5c7a58c4a0e82da6111cd.tar.bz2
Refactoring: introduce SymbolResolver to group symbol lookup routines
- Main goal was to avoid use of global state.
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 91730a0..ffbbbb4 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -50,6 +50,7 @@
#include "namespacedef.h"
#include "membergroup.h"
#include "definitionimpl.h"
+#include "symbolresolver.h"
//-----------------------------------------------------------------------------
@@ -3231,7 +3232,8 @@ void ClassDefImpl::addTypeConstraint(const QCString &typeConstraint,const QCStri
//printf("addTypeConstraint(%s,%s)\n",type.data(),typeConstraint.data());
static bool hideUndocRelation = Config_getBool(HIDE_UNDOC_RELATIONS);
if (typeConstraint.isEmpty() || type.isEmpty()) return;
- ClassDef *cd = const_cast<ClassDef*>(getResolvedClass(this,getFileDef(),typeConstraint));
+ SymbolResolver resolver(getFileDef());
+ ClassDef *cd = const_cast<ClassDef*>(resolver.resolveClass(this,typeConstraint));
if (cd==0 && !hideUndocRelation)
{
cd = new ClassDefImpl(getDefFileName(),getDefLine(),getDefColumn(),typeConstraint,ClassDef::Class);