From d83368664ca606310607e94851dc00a27232388d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 16 Jul 2021 11:02:48 +0200 Subject: [PATCH] Remove unnecessary call to clear() in Replace() There doesn't seem to be any need to clear the string in WXREGEX_CONVERT_TO_MB case. --- src/common/regex.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/regex.cpp b/src/common/regex.cpp index 471a983fcc..118bf0fcb3 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -728,7 +728,6 @@ int wxRegExImpl::Replace(wxString *text, const wxScopedCharBuffer textbuf = text->utf8_str(); const char* const textstr = textbuf.data(); size_t textlen = textbuf.length(); - text->clear(); #endif // the replacement text