fix the run-time behaviour after the last compilation fixing patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
abbb59e8eb
commit
fa3b08caf1
@ -323,7 +323,7 @@ wxString RegExTestCase::quote(const wxString& arg)
|
|||||||
wxString str;
|
wxString str;
|
||||||
|
|
||||||
for (size_t i = 0; i < arg.length(); i++) {
|
for (size_t i = 0; i < arg.length(); i++) {
|
||||||
wxChar ch = arg[i];
|
wxUChar ch = (wxChar)arg[i];
|
||||||
const wxChar *p = wxStrchr(needEscape, ch);
|
const wxChar *p = wxStrchr(needEscape, ch);
|
||||||
|
|
||||||
if (p)
|
if (p)
|
||||||
@ -331,7 +331,7 @@ wxString RegExTestCase::quote(const wxString& arg)
|
|||||||
else if (wxIscntrl(ch))
|
else if (wxIscntrl(ch))
|
||||||
str += wxString::Format(_T("\\%03o"), ch);
|
str += wxString::Format(_T("\\%03o"), ch);
|
||||||
else
|
else
|
||||||
str += ch;
|
str += (wxChar)ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return str.length() == arg.length() && str.find(' ') == wxString::npos ?
|
return str.length() == arg.length() && str.find(' ') == wxString::npos ?
|
||||||
|
Loading…
Reference in New Issue
Block a user