diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2006-10-29 18:39:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2006-10-29 18:39:28 (GMT) |
commit | 7e81d44c98dbbb1bb30d623be52ca76bbd880038 (patch) | |
tree | 6386fc01aea029071bdcabdf150991c7632b5fd3 /src/filedef.cpp | |
parent | 5e24df52170c1b19d8ef628f4e657bc35a7f300b (diff) | |
download | Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.zip Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.tar.gz Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.tar.bz2 |
Release-1.5.1
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 7214a56..0a3c814 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -840,6 +840,13 @@ void FileDef::addUsingDirective(NamespaceDef *nd) { usingDirList->append(nd->qualifiedName(),nd); } + //printf("%p: FileDef::addUsingDirective: %s:%d\n",this,name().data(),usingDirList->count()); +} + +NamespaceSDict *FileDef::getUsedNamespaces() const +{ + //printf("%p: FileDef::getUsedNamespace: %s:%d\n",this,name().data(),usingDirList?usingDirList->count():0); + return usingDirList; } void FileDef::addUsingDeclaration(Definition *d) @@ -917,7 +924,10 @@ void FileDef::addIncludedUsingDirectives() if (usingDirList==0) usingDirList = new NamespaceSDict; //printf("Prepending used namespace %s to the list of file %s\n", // nd->name().data(),name().data()); - usingDirList->prepend(nd->qualifiedName(),nd); + if (usingDirList->find(nd->qualifiedName())==0) // not yet added + { + usingDirList->prepend(nd->qualifiedName(),nd); + } } } } |