Skip to content

Commit

Permalink
Replaced replace(QRegExp(..)) by substitute
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jul 18, 2018
1 parent 47ab3db commit 5caff30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reflist.cpp
Expand Up @@ -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.
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 5caff30

Please sign in to comment.