summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index 59a53d7..511aa7b 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -2342,21 +2342,12 @@ QCString ClassDef::qualifiedNameWithTemplateParameters(
QCString ClassDef::className() const
{
- if (!m_className.isEmpty())
+ QCString className=m_localName;
+ Definition *p=getOuterScope();
+ while (p && p->definitionType()==TypeClass)
{
- return m_className;
- }
- else
- {
- ClassDef *that = (ClassDef *)this;
- // m_className is a cache value, so we fake that this function is "const".
- that->m_className=m_localName.copy();
- Definition *p=getOuterScope();
- while (p && p->definitionType()==TypeClass)
- {
- that->m_className.prepend(p->localName()+"::");
- p=p->getOuterScope();
- }
- return m_className;
+ className.prepend(p->localName()+"::");
+ p=p->getOuterScope();
}
+ return className;
};