From fbca3f69cf0e98a8269c86567c7d24d25723bb82 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Wed, 18 Jul 2018 13:31:43 +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 e60bcc6..ab40b9d 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. @@ -170,7 +169,8 @@ void RefList::generatePage() // write declaration in case a function with arguments if (!item->args.isEmpty()) { - doc += item->args.replace(QRegExp("@"),"@@"); + // escape @'s in argument list, needed for Java annotations (see issue #6208) + doc += substitute(item->args,"@","@@"); } doc += "
"; doc += item->text; -- cgit v0.12