diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-07-17 20:55:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-07-17 20:55:44 (GMT) |
commit | aee36e26c595fa69c0bdbba3c470ba8b7b153dac (patch) | |
tree | 8287e27d133bcae2c4cca5bbd409891c8618c52d /src/memberdef.cpp | |
parent | 5444ff60bbf81c46841827e66e72f3148edde9ff (diff) | |
download | Doxygen-aee36e26c595fa69c0bdbba3c470ba8b7b153dac.zip Doxygen-aee36e26c595fa69c0bdbba3c470ba8b7b153dac.tar.gz Doxygen-aee36e26c595fa69c0bdbba3c470ba8b7b153dac.tar.bz2 |
Release-1.3.2-20030717
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 5c67c03..c9b36c8 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -500,18 +500,10 @@ void MemberDef::writeLink(OutputList &ol,ClassDef *cd,NamespaceDef *nd, else // local link { QCString sep = Config_getBool("OPTIMIZE_OUTPUT_JAVA") ? "." : "::"; - if (cd) - { - ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),cd->name()+sep+name()); - } - else if (nd) - { - ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),nd->name()+sep+name()); - } - else - { - ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),name()); - } + QCString n = name(); + if (classDef && gd) n.prepend(classDef->name()+sep); + else if (nspace && gd) n.prepend(nspace->name()+sep); + ol.writeObjectLink(d->getReference(),d->getOutputFileBase(),anchor(),n); } } |