summaryrefslogtreecommitdiffstats
path: root/src/reflist.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-18 11:39:59 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-07-18 11:39:59 (GMT)
commit5caff305e828e98939c87191342ea6c33b17e96c (patch)
tree72642306bb81641df660832bca1c0d27d22450ff /src/reflist.cpp
parent47ab3db4d5f65d384b2fddbc979eb83644e6ca9c (diff)
downloadDoxygen-5caff305e828e98939c87191342ea6c33b17e96c.zip
Doxygen-5caff305e828e98939c87191342ea6c33b17e96c.tar.gz
Doxygen-5caff305e828e98939c87191342ea6c33b17e96c.tar.bz2
Replaced replace(QRegExp(..)) by substitute
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r--src/reflist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp
index e702a3c..1da603e 100644
--- a/src/reflist.cpp
+++ b/src/reflist.cpp
@@ -21,7 +21,6 @@
#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.
@@ -165,7 +164,8 @@ void RefList::generatePage()
doc += " \\_internalref ";
doc += item->name;
doc += " \"";
- doc += item->title.replace(QRegExp("\\"),"\\\\");
+ // escape \'s in title, see issue #5901
+ doc += substitute(item->title,"\\","\\\\");
doc += "\" ";
// write declaration in case a function with arguments
if (!item->args.isEmpty())