diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-07-28 19:05:01 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-07-28 19:05:01 (GMT) |
commit | 4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d (patch) | |
tree | aa81c2bd3e6109417a6bd30d6a58111d892f25f2 /src/definition.cpp | |
parent | c37c8626674dd6ba0d53dcad84dd4bb5d92005a4 (diff) | |
download | Doxygen-4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d.zip Doxygen-4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d.tar.gz Doxygen-4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d.tar.bz2 |
Release-1.7.1-20100728
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index fb31731..59906d5 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -474,6 +474,11 @@ void Definition::_setBriefDescription(const char *b,const char *briefFile,int br m_impl->brief->file = briefFile; m_impl->brief->line = briefLine; } + else + { + m_impl->brief->file = briefFile; + m_impl->brief->line = 1; + } } } @@ -790,8 +795,8 @@ void Definition::writeSourceDef(OutputList &ol,const char *) void Definition::setBodySegment(int bls,int ble) { - makeResident(); //printf("setBodySegment(%d,%d) for %s\n",bls,ble,name().data()); + makeResident(); if (m_impl->body==0) m_impl->body = new BodyInfo; m_impl->body->startLine=bls; m_impl->body->endLine=ble; @@ -1289,7 +1294,12 @@ void Definition::writePathFragment(OutputList &ol) const } else if (definitionType()==Definition::TypeClass) { - ol.writeObjectLink(getReference(),getOutputFileBase(),0,((const ClassDef*)this)->displayName()); + QCString name = m_impl->localName; + if (name.right(2)=="-p" || name.right(2)=="-g") + { + name = name.left(name.length()-2); + } + ol.writeObjectLink(getReference(),getOutputFileBase(),0,name); } else { |