string conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,13 +103,9 @@ void wxFontRefData::MacFindFont()
|
||||
m_macFontNum = ::GetAppFont() ;
|
||||
else
|
||||
{
|
||||
#if TARGET_CARBON
|
||||
c2pstrcpy( (StringPtr) wxBuffer, m_faceName ) ;
|
||||
#else
|
||||
strcpy( (char *) wxBuffer, m_faceName ) ;
|
||||
c2pstr( (char *) wxBuffer ) ;
|
||||
#endif
|
||||
::GetFNum( (StringPtr) wxBuffer, &m_macFontNum);
|
||||
Str255 fontname ;
|
||||
wxMacStringToPascal( m_faceName , fontname ) ;
|
||||
::GetFNum( fontname, &m_macFontNum);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -103,13 +103,9 @@ void wxFontRefData::MacFindFont()
|
||||
m_macFontNum = ::GetAppFont() ;
|
||||
else
|
||||
{
|
||||
#if TARGET_CARBON
|
||||
c2pstrcpy( (StringPtr) wxBuffer, m_faceName ) ;
|
||||
#else
|
||||
strcpy( (char *) wxBuffer, m_faceName ) ;
|
||||
c2pstr( (char *) wxBuffer ) ;
|
||||
#endif
|
||||
::GetFNum( (StringPtr) wxBuffer, &m_macFontNum);
|
||||
Str255 fontname ;
|
||||
wxMacStringToPascal( m_faceName , fontname ) ;
|
||||
::GetFNum( fontname, &m_macFontNum);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user