summaryrefslogtreecommitdiffstats
path: root/addon/doxyparse
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-02-18 21:26:30 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-02-20 19:17:52 (GMT)
commita59cd278932b11820dde87e764052622aa38980b (patch)
tree78b1c84aaa92c584e799cc692d3c7206f2c34505 /addon/doxyparse
parentc3754eee8014e15ab673f999986320058aeb7324 (diff)
downloadDoxygen-a59cd278932b11820dde87e764052622aa38980b.zip
Doxygen-a59cd278932b11820dde87e764052622aa38980b.tar.gz
Doxygen-a59cd278932b11820dde87e764052622aa38980b.tar.bz2
Refactoring: replace QRegExp by std::regex in doxyparse.cpp
Diffstat (limited to 'addon/doxyparse')
-rw-r--r--addon/doxyparse/doxyparse.cpp5
1 files 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 <map>
#include <qdir.h>
#include <qcstring.h>
-#include <qregexp.h>
#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() : "";
}