Compilation fix for wxUSE_STL && !wxUSE_STL_BASED_WXSTRING build.
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
This commit is contained in:
parent
ee0fc51fe3
commit
da94537c64
@ -1436,7 +1436,7 @@ size_t wxString::Replace(const wxString& strOld,
|
||||
}
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user