Fix recently broken wxRegEx build in UTF-8 mode

Restore the use of c_str() replaced with wx_str() in 4dd77dabe8 (Check
for WXREGEX_CONVERT_TO_MB when calling regcomp() too, 2021-07-16), as
it's still necessary when wxUSE_UNICODE_UTF8==1.
This commit is contained in:
Vadim Zeitlin
2021-07-17 17:59:05 +02:00
parent 304d5e6c59
commit 71d1ced5b8

View File

@@ -550,7 +550,7 @@ bool wxRegExImpl::Compile(const wxString& expr, int flags)
flagsRE |= REG_NEWLINE;
#ifndef WXREGEX_CONVERT_TO_MB
const wxChar *exprstr = expr.wx_str();
const wxChar *exprstr = expr.c_str();
#else
const wxScopedCharBuffer exprbuf = expr.utf8_str();
const char* const exprstr = exprbuf.data();