summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-02-16 21:11:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-02-16 21:11:17 (GMT)
commite2eb1d33d197604c048fb035fd1b6ecbd6a7494a (patch)
tree524eebded0dbf9efbc5b02ab15856f10f914ff99 /src/mangen.cpp
parentf22ba481afa686d1a834e056963f8d41621aba88 (diff)
downloadDoxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.zip
Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.gz
Doxygen-e2eb1d33d197604c048fb035fd1b6ecbd6a7494a.tar.bz2
Release-1.6.2-20100216
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index 816f8a6..f0e904a 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -100,6 +100,7 @@ void ManGenerator::init()
static QCString buildFileName(const char *name)
{
QCString fileName;
+ if (name==0) return "noname";
const char *p=name;
char c;
@@ -407,7 +408,7 @@ void ManGenerator::startDoxyAnchor(const char *,const char *manName,
// the name of the link file is derived from the name of the anchor:
// - truncate after an (optional) ::
QCString baseName = name;
- int i=baseName.findRev(':');
+ int i=baseName.findRev("::");
if (i!=-1) baseName=baseName.right(baseName.length()-i-1);
// - remove dangerous characters and append suffix, then add dir prefix