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.
This commit is contained in:
Vadim Zeitlin
2021-07-16 11:02:48 +02:00
parent 838b693b46
commit d83368664c

View File

@@ -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