diff options
Diffstat (limited to 'vcl/unx/generic/dtrans/bmp.cxx')
-rw-r--r-- | vcl/unx/generic/dtrans/bmp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/dtrans/bmp.cxx b/vcl/unx/generic/dtrans/bmp.cxx index 0c8e1318e735..621243e5a11f 100644 --- a/vcl/unx/generic/dtrans/bmp.cxx +++ b/vcl/unx/generic/dtrans/bmp.cxx @@ -142,7 +142,7 @@ static sal_uInt8* X11_getPaletteBmpFromImage( // allocate buffer to hold header and scanlines, initialize to zero rOutSize = nHeaderSize + nScanlineSize*pImage->height; - pBuffer = (sal_uInt8*)rtl_allocateZeroMemory( rOutSize ); + pBuffer = static_cast<sal_uInt8*>(rtl_allocateZeroMemory( rOutSize )); for( int y = 0; y < pImage->height; y++ ) { sal_uInt8* pScanline = pBuffer + nHeaderSize + (pImage->height-1-y)*nScanlineSize; @@ -265,7 +265,7 @@ static sal_uInt8* X11_getTCBmpFromImage( // allocate buffer to hold header and scanlines, initialize to zero rOutSize = nHeaderSize + nScanlineSize*pImage->height; - pBuffer = (sal_uInt8*)rtl_allocateZeroMemory( rOutSize ); + pBuffer = static_cast<sal_uInt8*>(rtl_allocateZeroMemory( rOutSize )); for( int y = 0; y < pImage->height; y++ ) { sal_uInt8* pScanline = pBuffer + nHeaderSize + (pImage->height-1-y)*nScanlineSize; @@ -683,7 +683,7 @@ Pixmap PixmapHolder::setBitmapData( const sal_uInt8* pData ) aImage.obdata = NULL; XInitImage( &aImage ); - aImage.data = (char*)rtl_allocateMemory( nHeight*aImage.bytes_per_line ); + aImage.data = static_cast<char*>(rtl_allocateMemory( nHeight*aImage.bytes_per_line )); if( readLE32( pData+14 ) == 24 ) { |