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:
@@ -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
|
||||
|
Reference in New Issue
Block a user