summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
commitd384b6c7459cffcbb30bdd0ab06bde6f0cd12688 (patch)
tree6386fc01aea029071bdcabdf150991c7632b5fd3 /src/filedef.cpp
parent6ad4771494b64943541d87639743de4d6618ebc4 (diff)
downloadDoxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.zip
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.gz
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.bz2
Release-1.5.1
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp12
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);
+ }
}
}
}