From a59cd278932b11820dde87e764052622aa38980b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Thu, 18 Feb 2021 22:26:30 +0100 Subject: Refactoring: replace QRegExp by std::regex in doxyparse.cpp --- addon/doxyparse/doxyparse.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addon/doxyparse/doxyparse.cpp b/addon/doxyparse/doxyparse.cpp index dde9eb1..4059861 100644 --- a/addon/doxyparse/doxyparse.cpp +++ b/addon/doxyparse/doxyparse.cpp @@ -42,7 +42,6 @@ #include #include #include -#include #include "namespacedef.h" #include "portable.h" @@ -184,8 +183,8 @@ static int isPartOfCStruct(const MemberDef * md) { std::string sanitizeString(std::string data) { QCString new_data = QCString(data.c_str()); - new_data.replace(QRegExp("\""), ""); - new_data.replace(QRegExp("\\"), ""); // https://github.com/analizo/analizo/issues/138 + new_data = substitute(new_data,"\"", ""); + new_data = substitute(new_data,"\'", ""); // https://github.com/analizo/analizo/issues/138 return !new_data.isEmpty() ? new_data.data() : ""; } -- cgit v0.12