remove dependency from former cocoa port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "wx/fontutil.h"
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
#if defined( __WXCOCOA__ )
|
||||
#include "wx/cocoa/string.h"
|
||||
#endif
|
||||
|
||||
@@ -148,7 +148,7 @@ void wxFont::SetNativeInfoFromNSFont(WX_NSFont theFont, wxNativeFontInfo* info)
|
||||
fontstyle = wxFONTSTYLE_ITALIC ;
|
||||
|
||||
info->Init(size,fontFamily,fontstyle,fontweight,underlined,
|
||||
wxStringWithNSString([theFont familyName]), wxFONTENCODING_DEFAULT);
|
||||
wxCFStringRef::AsString([theFont familyName]), wxFONTENCODING_DEFAULT);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user