From 931ec049e0a0cc89cf13412032fbcf5dbd1e49f4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Jan 2015 18:06:41 +0100 Subject: Some more loplugin:cstylecast: basebmp Change-Id: I7e1e37110b9bd53a5eae543c854cc2c434a6b678 --- basebmp/source/bitmapdevice.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basebmp') diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index d79afd5166b2..12def64d0eb5 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -746,7 +746,7 @@ namespace sal_Int32 nDestY = rDstRect.getMinY(); char* dstBuf = (char*)getBuffer().get(); - char* srcBuf = (char*)rSrcBitmap->getBuffer().get(); + char* srcBuf = reinterpret_cast(rSrcBitmap->getBuffer().get()); sal_Int32 dstStride = getScanlineStride(); sal_Int32 srcStride = rSrcBitmap->getScanlineStride(); sal_Int32 bytesPerPixel = (bitsPerPixel[getScanlineFormat()] + 7) >> 3; // round up to bytes -- cgit