diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-06-04 14:15:23 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-06-04 14:15:23 (GMT) |
commit | e90eb41e09adeb8970ef9a64fb8f163f068d7b17 (patch) | |
tree | 431650e77325cdf55ef9e710fd0ac1a9d87d3486 /src/dot.cpp | |
parent | cd76bda7e377a14bd6b3d321425cf462a46a3f75 (diff) | |
download | Doxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.zip Doxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.tar.gz Doxygen-e90eb41e09adeb8970ef9a64fb8f163f068d7b17.tar.bz2 |
Release-1.2.8
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 12 |
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 |