diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-10-10 19:13:27 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-10-10 19:13:27 (GMT) |
commit | 50828c3c773e8095785c010c1aad3891076742f4 (patch) | |
tree | a1de4b4e9cdb500ec50176a1d5a70efafc4eb88f /src/namespacedef.cpp | |
parent | 89f2e4c8f026df987fab492c050e43011ef96871 (diff) | |
download | Doxygen-50828c3c773e8095785c010c1aad3891076742f4.zip Doxygen-50828c3c773e8095785c010c1aad3891076742f4.tar.gz Doxygen-50828c3c773e8095785c010c1aad3891076742f4.tar.bz2 |
Release-1.3.9.1
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r-- | src/namespacedef.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp index ee4c48b..77779be 100644 --- a/src/namespacedef.cpp +++ b/src/namespacedef.cpp @@ -29,11 +29,19 @@ #include "searchindex.h" NamespaceDef::NamespaceDef(const char *df,int dl, - const char *name,const char *lref) : + const char *name,const char *lref, + const char *fName) : Definition(df,dl,name) { - fileName="namespace"; - fileName+=name; + if (fName) + { + fileName = stripExtension(fName); + } + else + { + fileName="namespace"; + fileName+=name; + } classSDict = new ClassSDict(17); namespaceSDict = new NamespaceSDict(17); m_innerCompounds = new SDict<Definition>(257); @@ -414,7 +422,14 @@ void NamespaceDef::addUsingDeclaration(Definition *d) QCString NamespaceDef::getOutputFileBase() const { - return convertNameToFile(fileName); + if (isReference()) + { + return fileName; + } + else + { + return convertNameToFile(fileName); + } } Definition *NamespaceDef::findInnerCompound(const char *n) |