From 62e798c4a520a8b96e9113e363b1f26767231636 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Mar 2015 13:17:42 +0200 Subject: Reduce to static_cast any reinterpret_cast from void pointers Change-Id: I65d76524847b57dcb17ee3f66e156ec1fd51b239 --- vcl/generic/glyphs/gcach_ftyp.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl/generic/glyphs/gcach_ftyp.cxx') diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx index 93a79b1649ac..e7c73023452c 100644 --- a/vcl/generic/glyphs/gcach_ftyp.cxx +++ b/vcl/generic/glyphs/gcach_ftyp.cxx @@ -192,7 +192,7 @@ void FtFontFile::Unmap() // wrap FtFontInfo's table function const void * graphiteFontTable(const void* appFaceHandle, unsigned int name, size_t *len) { - const FtFontInfo * pFontInfo = reinterpret_cast(appFaceHandle); + const FtFontInfo * pFontInfo = static_cast(appFaceHandle); typedef union { char m_c[5]; unsigned int m_id; @@ -1473,7 +1473,7 @@ extern "C" { // then uncomment the const-tokens in the function interfaces below static int FT_move_to( FT_Vector_CPtr p0, void* vpPolyArgs ) { - PolyArgs& rA = *reinterpret_cast(vpPolyArgs); + PolyArgs& rA = *static_cast(vpPolyArgs); // move_to implies a new polygon => finish old polygon first rA.ClosePolygon(); @@ -1484,14 +1484,14 @@ static int FT_move_to( FT_Vector_CPtr p0, void* vpPolyArgs ) static int FT_line_to( FT_Vector_CPtr p1, void* vpPolyArgs ) { - PolyArgs& rA = *reinterpret_cast(vpPolyArgs); + PolyArgs& rA = *static_cast(vpPolyArgs); rA.AddPoint( p1->x, p1->y, POLY_NORMAL ); return 0; } static int FT_conic_to( FT_Vector_CPtr p1, FT_Vector_CPtr p2, void* vpPolyArgs ) { - PolyArgs& rA = *reinterpret_cast(vpPolyArgs); + PolyArgs& rA = *static_cast(vpPolyArgs); // VCL's Polygon only knows cubic beziers const long nX1 = (2 * rA.GetPosX() + 4 * p1->x + 3) / 6; @@ -1508,7 +1508,7 @@ static int FT_conic_to( FT_Vector_CPtr p1, FT_Vector_CPtr p2, void* vpPolyArgs ) static int FT_cubic_to( FT_Vector_CPtr p1, FT_Vector_CPtr p2, FT_Vector_CPtr p3, void* vpPolyArgs ) { - PolyArgs& rA = *reinterpret_cast(vpPolyArgs); + PolyArgs& rA = *static_cast(vpPolyArgs); rA.AddPoint( p1->x, p1->y, POLY_CONTROL ); rA.AddPoint( p2->x, p2->y, POLY_CONTROL ); rA.AddPoint( p3->x, p3->y, POLY_NORMAL ); -- cgit v1.2.3