Don't rely on implicit wxString to "const char*" conversion in Replace().
Closes #14327.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71543
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
else if ( !bReplaceAll)
{
}
else if ( !bReplaceAll)
{
- size_t pos = m_impl.find(strOld, 0);
+ size_t pos = m_impl.find(strOld.m_impl, 0);
if ( pos != npos )
{
m_impl.replace(pos, strOld.m_impl.length(), strNew.m_impl);
if ( pos != npos )
{
m_impl.replace(pos, strOld.m_impl.length(), strNew.m_impl);