From 5caff305e828e98939c87191342ea6c33b17e96c Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 18 Jul 2018 13:39:59 +0200 Subject: Replaced replace(QRegExp(..)) by substitute --- src/reflist.cpp | 4 ++-- 1 file 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 /*! 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()) -- cgit v0.12