Skip to content

Commit

Permalink
Refactoring: replace QRegExp by std::regex in doxyparse.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Feb 20, 2021
1 parent c3754ee commit a59cd27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addon/doxyparse/doxyparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <map>
#include <qdir.h>
#include <qcstring.h>
#include <qregexp.h>
#include "namespacedef.h"
#include "portable.h"

Expand Down Expand Up @@ -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() : "";
}

Expand Down

0 comments on commit a59cd27

Please sign in to comment.