summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-04 14:15:23 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-04 14:15:23 (GMT)
commit88030e6b0efd9ac75cd61eedd75f5a38bf1713c7 (patch)
tree431650e77325cdf55ef9e710fd0ac1a9d87d3486 /src/dot.cpp
parent9c04d0ffef418ec6c771a0afa4679a4e508ba710 (diff)
downloadDoxygen-88030e6b0efd9ac75cd61eedd75f5a38bf1713c7.zip
Doxygen-88030e6b0efd9ac75cd61eedd75f5a38bf1713c7.tar.gz
Doxygen-88030e6b0efd9ac75cd61eedd75f5a38bf1713c7.tar.bz2
Release-1.2.8
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 4aae44d..69dc041 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -290,8 +290,18 @@ static void computeTemplateInstance(
QCString templSpec;
while (extractClassNameFromType(actualArg,pos,name,templSpec))
{
+ Definition *scopeDef = cd->getOuterScope();
+ QCString scopeName;
+ if (scopeDef) scopeName = scopeDef->qualifiedName();
//printf("name=%s templSpec=%s\n",name.data(),templSpec.data());
- ClassDef *acd=getResolvedClass(name);
+ ClassDef *acd=0;
+
+ // try with scope.
+ if (!scopeName.isEmpty())
+ acd = getResolvedClass(scopeName+"::"+name);
+ // try without scope.
+ // TODO: try intermediate scopes as well!
+ if (acd==0) acd = getResolvedClass(name);
if (acd && !templSpec.isEmpty())
{
// store specific template instance in the class