Kaydet (Commit) fb09b1f3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up C-style casts from pointers to void

Change-Id: Ic903d2429672159691fef58d0d7a15433c884250
üst 6a6991ed
...@@ -441,7 +441,7 @@ namespace cairocanvas ...@@ -441,7 +441,7 @@ namespace cairocanvas
if( aBmpEx.IsTransparent() || aBmpEx.IsAlpha() ) if( aBmpEx.IsTransparent() || aBmpEx.IsAlpha() )
pAlphaReadAcc = aAlpha.AcquireReadAccess(); pAlphaReadAcc = aAlpha.AcquireReadAccess();
data = (unsigned char*) malloc( nWidth*nHeight*4 ); data = static_cast<unsigned char*>(malloc( nWidth*nHeight*4 ));
long nOff = 0; long nOff = 0;
::Color aColor; ::Color aColor;
......
...@@ -520,7 +520,7 @@ namespace cairocanvas ...@@ -520,7 +520,7 @@ namespace cairocanvas
font_face = cairo_win32_font_face_create_for_hfont(rSysFontData.hFont); font_face = cairo_win32_font_face_create_for_hfont(rSysFontData.hFont);
#elif defined CAIRO_HAS_FT_FONT #elif defined CAIRO_HAS_FT_FONT
font_face = cairo_ft_font_face_create_for_ft_face((FT_Face)rSysFontData.nFontId, font_face = cairo_ft_font_face_create_for_ft_face(static_cast<FT_Face>(rSysFontData.nFontId),
rSysFontData.nFontFlags); rSysFontData.nFontFlags);
#else #else
# error Native API needed. # error Native API needed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment