From fb09b1f3c6e57cb8e679af982f88b96660c14a4c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 28 Mar 2015 18:58:31 +0100 Subject: Clean up C-style casts from pointers to void Change-Id: Ic903d2429672159691fef58d0d7a15433c884250 --- canvas/source/cairo/cairo_canvashelper.cxx | 2 +- canvas/source/cairo/cairo_textlayout.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'canvas/source') diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index d86b72913a5b..72969790e49f 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -441,7 +441,7 @@ namespace cairocanvas if( aBmpEx.IsTransparent() || aBmpEx.IsAlpha() ) pAlphaReadAcc = aAlpha.AcquireReadAccess(); - data = (unsigned char*) malloc( nWidth*nHeight*4 ); + data = static_cast(malloc( nWidth*nHeight*4 )); long nOff = 0; ::Color aColor; diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx index decdde53344a..f5a197846e72 100644 --- a/canvas/source/cairo/cairo_textlayout.cxx +++ b/canvas/source/cairo/cairo_textlayout.cxx @@ -520,7 +520,7 @@ namespace cairocanvas font_face = cairo_win32_font_face_create_for_hfont(rSysFontData.hFont); #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(rSysFontData.nFontId), rSysFontData.nFontFlags); #else # error Native API needed. -- cgit