summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index ed5a6c3..4842e28 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -702,10 +702,19 @@ QCString Definition::qualifiedName()
{
m_qualifiedName = m_outerScope->qualifiedName()+"::"+m_localName;
}
- //printf("end Definition::qualifiedName()=%s\n",qualifiedName.data());
+ //printf("end Definition::qualifiedName()=%s\n",m_qualifiedName.data());
return m_qualifiedName;
};
+void Definition::setOuterScope(Definition *d)
+{
+ if (m_outerScope!=d)
+ {
+ m_qualifiedName.resize(0); // flush cached scope name
+ m_outerScope = d;
+ }
+}
+
QCString Definition::localName() const
{
return m_localName;