diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 13:37:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-03 15:20:04 +0200 |
commit | a28e7f7aa995f8c2c9e4eda332c30853338c7ae9 (patch) | |
tree | 06c5b8defd421e567dcbb1fde5eb91aae1438125 /canvas/source | |
parent | 0abf268f3893ecc716088aa399e81a1ef31e13d2 (diff) |
loplugin: cstylecast
Change-Id: Ie478d1fcfd3b64d7a2128887c216b5e0b4501ab9
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/cairo/cairo_xlib_cairo.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/canvas/source/cairo/cairo_xlib_cairo.cxx b/canvas/source/cairo/cairo_xlib_cairo.cxx index 8f496a45f39d..a9e2069f1122 100644 --- a/canvas/source/cairo/cairo_xlib_cairo.cxx +++ b/canvas/source/cairo/cairo_xlib_cairo.cxx @@ -29,6 +29,7 @@ #include <vcl/sysdata.hxx> #include <vcl/bitmap.hxx> #include <vcl/virdev.hxx> +#include <vcl/window.hxx> #include <basegfx/vector/b2isize.hxx> namespace @@ -187,7 +188,7 @@ namespace cairo mpPixmap(), mpSurface( cairo_xlib_surface_create( (Display*)rSysData.pDisplay, - (Drawable)rData.aPixmap, + reinterpret_cast<Drawable>(rData.aPixmap), (Visual*) rSysData.pVisual, rData.mnWidth, rData.mnHeight ), &cairo_surface_destroy) @@ -337,10 +338,10 @@ namespace cairo int x, int y, int width, int height ) { if( rRefDevice.GetOutDevType() == OUTDEV_WINDOW ) - return SurfaceSharedPtr(new X11Surface(getSysData((const vcl::Window&)rRefDevice), + return SurfaceSharedPtr(new X11Surface(getSysData(static_cast<const vcl::Window&>(rRefDevice)), x,y,width,height)); else if( rRefDevice.GetOutDevType() == OUTDEV_VIRDEV ) - return SurfaceSharedPtr(new X11Surface(getSysData((const VirtualDevice&)rRefDevice), + return SurfaceSharedPtr(new X11Surface(getSysData(static_cast<const VirtualDevice&>(rRefDevice)), x,y,width,height)); else return SurfaceSharedPtr(); @@ -355,9 +356,9 @@ namespace cairo if ( rData.mnWidth == rSize.Width() && rData.mnHeight == rSize.Height() ) { if( rRefDevice.GetOutDevType() == OUTDEV_WINDOW ) - return SurfaceSharedPtr(new X11Surface(getSysData((const vcl::Window&)rRefDevice), rData )); + return SurfaceSharedPtr(new X11Surface(getSysData(static_cast<const vcl::Window&>(rRefDevice)), rData )); else if( rRefDevice.GetOutDevType() == OUTDEV_VIRDEV ) - return SurfaceSharedPtr(new X11Surface(getSysData((const VirtualDevice&)rRefDevice), rData )); + return SurfaceSharedPtr(new X11Surface(getSysData(static_cast<const VirtualDevice&>(rRefDevice)), rData )); } return SurfaceSharedPtr(); |