Kaydet (Commit) 99e4d3a5 authored tarafından Armin Le Grand's avatar Armin Le Grand

Corrected static_cast which does not work on Win compiler, reinterpret cas…

Corrected static_cast which does not work on Win compiler, reinterpret cas needed (base classes are not related)
üst 7e88ce2b
...@@ -335,7 +335,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const ...@@ -335,7 +335,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
return hDIB; return hDIB;
PBITMAPINFO pBI = static_cast<PBITMAPINFO>( GlobalLock( hDIB ) ); PBITMAPINFO pBI = static_cast<PBITMAPINFO>( GlobalLock( hDIB ) );
PBITMAPINFOHEADER pBIH = static_cast<PBITMAPINFOHEADER>( pBI ); PBITMAPINFOHEADER pBIH = reinterpret_cast<PBITMAPINFOHEADER>( pBI );
pBIH->biSize = sizeof( BITMAPINFOHEADER ); pBIH->biSize = sizeof( BITMAPINFOHEADER );
pBIH->biWidth = rSize.Width(); pBIH->biWidth = rSize.Width();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment