summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-04-23 18:39:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-04-23 18:39:17 (GMT)
commita790b4aefe37b616ec4563877e01aa5f99447c85 (patch)
treeae15def425ebe4c6c13d7b4ffd8e147e03d535b3 /src/namespacedef.cpp
parent37905e0a0fcc820a556d56e609335afd21f8a929 (diff)
downloadDoxygen-a790b4aefe37b616ec4563877e01aa5f99447c85.zip
Doxygen-a790b4aefe37b616ec4563877e01aa5f99447c85.tar.gz
Doxygen-a790b4aefe37b616ec4563877e01aa5f99447c85.tar.bz2
Release-1.1.2-20000423
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index b1fb93a..b74f933 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -31,6 +31,7 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name)
{
fileName="namespace_"+nameToFile(name);
classList = new ClassList;
+ classDict = new ClassDict(1009);
//memList = new MemberList;
usingList = 0;
setReference(ref);
@@ -42,6 +43,7 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name)
NamespaceDef::~NamespaceDef()
{
delete classList;
+ delete classDict;
delete usingList;
delete memberGroupList;
delete memberGroupDict;
@@ -54,7 +56,11 @@ void NamespaceDef::insertUsedFile(const char *f)
void NamespaceDef::insertClass(ClassDef *cd)
{
- classList->append(cd);
+ if (classDict->find(cd->name())==0)
+ {
+ classList->append(cd);
+ classDict->insert(cd->name(),cd);
+ }
}
void NamespaceDef::addMemberToGroup(MemberDef *md,int groupId)