diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 2 | ||||
-rw-r--r-- | canvas/source/cairo/cairo_textlayout.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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<unsigned char*>(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<FT_Face>(rSysFontData.nFontId), rSysFontData.nFontFlags); #else # error Native API needed. |