diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-07-17 20:55:44 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-07-17 20:55:44 (GMT) |
commit | 655c12fb6a950ed1b59bbcc29852ce20e45fdc6a (patch) | |
tree | 8287e27d133bcae2c4cca5bbd409891c8618c52d /src/memberdef.cpp | |
parent | aca0b88941aefecfbef3186e63049cc7fba0a11c (diff) | |
download | Doxygen-655c12fb6a950ed1b59bbcc29852ce20e45fdc6a.zip Doxygen-655c12fb6a950ed1b59bbcc29852ce20e45fdc6a.tar.gz Doxygen-655c12fb6a950ed1b59bbcc29852ce20e45fdc6a.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); } } |