summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-10-10 19:13:27 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-10-10 19:13:27 (GMT)
commit161d3860fa7f0e80edbdb2b3105e9759cada1dbb (patch)
treea1de4b4e9cdb500ec50176a1d5a70efafc4eb88f /src/namespacedef.cpp
parentdeb9b8d40d7ac7d0c576ac9401aaed9e21ccdc58 (diff)
downloadDoxygen-161d3860fa7f0e80edbdb2b3105e9759cada1dbb.zip
Doxygen-161d3860fa7f0e80edbdb2b3105e9759cada1dbb.tar.gz
Doxygen-161d3860fa7f0e80edbdb2b3105e9759cada1dbb.tar.bz2
Release-1.3.9.1
Diffstat (limited to 'src/namespacedef.cpp')
-rw-r--r--src/namespacedef.cpp23
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)