diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/sysdata.hxx | 4 | ||||
-rw-r--r-- | vcl/ios/source/gdi/salgdi.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/vcl/sysdata.hxx b/vcl/inc/vcl/sysdata.hxx index 81195b1de4d6..6f39cc9ee4b9 100644 --- a/vcl/inc/vcl/sysdata.hxx +++ b/vcl/inc/vcl/sysdata.hxx @@ -44,7 +44,7 @@ class NSView; #endif #ifdef IOS -typedef struct CGFont *CGFontRef; +typedef const struct __CTFont * CTFontRef; typedef struct CGContext *CGContextRef; typedef struct CGLayer *CGLayerRef; #ifdef __OBJC__ @@ -203,7 +203,7 @@ struct SystemFontData #elif defined( QUARTZ ) void* aATSUFontID; // native font object #elif defined( IOS ) - void* rCTFont; // native font object + CTFontRef rCTFont; // native font object #elif defined( UNX ) void* nFontId; // native font id int nFontFlags; // native font flags diff --git a/vcl/ios/source/gdi/salgdi.cxx b/vcl/ios/source/gdi/salgdi.cxx index f7f6bcdbcf26..32cc9fbbf89f 100644 --- a/vcl/ios/source/gdi/salgdi.cxx +++ b/vcl/ios/source/gdi/salgdi.cxx @@ -204,7 +204,7 @@ SystemFontData IosSalGraphics::GetSysFontData( int /* nFallbacklevel */ ) const CTFontRef font = CTFontCreateUIFontForLanguage(kCTFontSystemFontType, 0.0, NULL); font = (CTFontRef)CFRetain(font); - aSysFontData.rCTFont = (void*)font; + aSysFontData.rCTFont = font; CTFontRef italic_font = CTFontCreateCopyWithSymbolicTraits( font, 0.0, |