diff options
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r-- | src/mangen.cpp | 3 |
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 |