diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-09-30 15:25:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-09-30 15:25:14 (GMT) |
commit | e174524c861548adb3cfd48ef59a7a4551cd2bfb (patch) | |
tree | c28047dda40b8133ff1326d80fcf662cc8065c7e /src/classdef.cpp | |
parent | 86502f97ecaea3254217d723b5f10b6405495184 (diff) | |
download | Doxygen-e174524c861548adb3cfd48ef59a7a4551cd2bfb.zip Doxygen-e174524c861548adb3cfd48ef59a7a4551cd2bfb.tar.gz Doxygen-e174524c861548adb3cfd48ef59a7a4551cd2bfb.tar.bz2 |
Release-1.2.11
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 21 |
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; }; |