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