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:
@@ -134,7 +134,7 @@ int wxChoice::DoAppend(
|
||||
nIndex = (int)::WinSendMsg( GetHwnd()
|
||||
,LM_INSERTITEM
|
||||
,(MPARAM)nIndexType
|
||||
,(MPARAM)rsItem.char_str()
|
||||
,(MPARAM)rsItem.wx_str()
|
||||
);
|
||||
return nIndex;
|
||||
} // end of wxChoice::DoAppend
|
||||
@@ -157,7 +157,7 @@ int wxChoice::DoInsert( const wxString& rsItem, unsigned int pos )
|
||||
nIndex = (int)::WinSendMsg( GetHwnd()
|
||||
,LM_INSERTITEM
|
||||
,(MPARAM)nIndexType
|
||||
,(MPARAM)rsItem.char_str()
|
||||
,(MPARAM)rsItem.wx_str()
|
||||
);
|
||||
return nIndex;
|
||||
} // end of wxChoice::DoInsert
|
||||
@@ -232,7 +232,7 @@ void wxChoice::SetString(unsigned int n, const wxString& rsStr)
|
||||
::WinSendMsg( GetHwnd()
|
||||
,LM_INSERTITEM
|
||||
,(MPARAM)nIndexType
|
||||
,(MPARAM)rsStr.char_str()
|
||||
,(MPARAM)rsStr.wx_str()
|
||||
);
|
||||
|
||||
if (pData)
|
||||
|
Reference in New Issue
Block a user