summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-06-07 11:47:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-06-07 11:47:47 (GMT)
commit0c394c5817041713aee58748fcd5d338a467cbee (patch)
treef17d17b67fdefdfdf992328f3f51dd90812c156e /src/util.cpp
parent70b82eced91d2739181f2b700ec04cb14d776d7b (diff)
downloadDoxygen-0c394c5817041713aee58748fcd5d338a467cbee.zip
Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.gz
Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.bz2
Release-1.3.1-20030607
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 741291c..c654cb7 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -3130,6 +3130,12 @@ void extractNamespaceName(const QCString &scopeName,
namespaceName.resize(0);
done:
+ if (className.isEmpty() && !namespaceName.isEmpty())
+ {
+ // class and namespace with the same name, correct to return the class.
+ className=namespaceName.copy();
+ namespaceName.resize(0);
+ }
//printf("extractNamespace `%s' => `%s|%s'\n",scopeName.data(),
// className.data(),namespaceName.data());
return;
@@ -4009,6 +4015,7 @@ void filterLatexString(QTextStream &t,const char *str,
case '\\': t << "\\(\\backslash\\)"; break;
case '{': t << "\\{"; break;
case '}': t << "\\}"; break;
+ case '_': t << "\\_"; break;
default:
{
// Some languages use wide characters