Replaced incorrect or inefficient usage of char_str() by wx_str().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -329,7 +329,8 @@ void wxTextCtrl::SetupColours()
|
||||
wxString wxTextCtrl::GetValue() const
|
||||
{
|
||||
wxString sStr = wxGetWindowText(GetHWND());
|
||||
char* zStr = sStr.char_str();
|
||||
wxCharBuffer buf(sStr.char_str());
|
||||
char* zStr = buf.data();
|
||||
|
||||
for ( ; *zStr; zStr++ )
|
||||
{
|
||||
@@ -370,7 +371,7 @@ void wxTextCtrl::WriteText(
|
||||
)
|
||||
{
|
||||
if (m_bIsMLE)
|
||||
::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM(rsValue.char_str()), MPARAM(0));
|
||||
::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM(rsValue.wx_str()), MPARAM(0));
|
||||
else
|
||||
::WinSetWindowText(GetHwnd(), rsValue.c_str());
|
||||
AdjustSpaceLimit();
|
||||
|
Reference in New Issue
Block a user