diff options
author | albert-github <albert.tests@gmail.com> | 2018-05-17 17:21:39 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-05-17 17:21:39 (GMT) |
commit | bf793310d5d493d19b6cb8840151ab38659dd58f (patch) | |
tree | cc25a098934864dad1135d4fe6cf6e957ea2142c /src | |
parent | df0d9c3df44dbce633c38e99d33be4de06706f7b (diff) | |
download | Doxygen-bf793310d5d493d19b6cb8840151ab38659dd58f.zip Doxygen-bf793310d5d493d19b6cb8840151ab38659dd58f.tar.gz Doxygen-bf793310d5d493d19b6cb8840151ab38659dd58f.tar.bz2 |
Bug 759063 - Macros (@test, @todo, etc) used with PHP namespaces causes illegal command warning
Illegal command is in case cause by the fact that the namespace-name and class-name are "concatenated" by means of a '\' in the tite of the, internal, xreflist.
This patch fixes this by doubling the backslash.
Diffstat (limited to 'src')
-rw-r--r-- | src/reflist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index 5a80b19..758734a 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -21,6 +21,7 @@ #include "util.h" #include "ftextstream.h" #include "definition.h" +#include <qregexp.h> /*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. @@ -164,7 +165,7 @@ void RefList::generatePage() doc += " \\_internalref "; doc += item->name; doc += " \""; - doc += item->title; + doc += item->title.replace(QRegExp("\\"),"\\\\"); doc += "\" "; // write declaration in case a function with arguments if (!item->args.isEmpty()) |