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:
Stefan Neis
2007-04-07 12:21:15 +00:00
parent 6a74af89fc
commit 404aba09e5
10 changed files with 25 additions and 29 deletions

View File

@@ -1753,12 +1753,10 @@ void wxDC::DrawAnyText( const wxString& rsText,
vPtlStart.y = vY;
}
PCH pzStr = rsText.char_str();
::GpiMove(m_hPS, &vPtlStart);
lHits = ::GpiCharString( m_hPS
,rsText.length()
,pzStr
,rsText.wx_str()
);
if (lHits != GPI_OK)
{
@@ -2178,7 +2176,7 @@ void wxDC::DoGetTextExtent(
//
bRc = ::GpiQueryTextBox( m_hPS
,l
,rsString.char_str()
,(char *)rsString.wx_str()
,TXTBOX_COUNT // return maximum information
,avPoint // array of coordinates points
);