summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-07-19 12:15:33 +0000
committerArmin Le Grand <alg@apache.org>2012-07-19 12:15:33 +0000
commit99e4d3a57f88f71c47f1e519bde13080f0df3041 (patch)
tree72f4187b84f816ba05abd483c4546fe7d65502a3 /vcl
parent7e88ce2b0f405230d6d2956168e09dc593fba1e0 (diff)
Corrected static_cast which does not work on Win compiler, reinterpret cas needed (base classes are not related)
Notes
Notes: merged as: a9129e49e23e2a8d0ee9b92e00c2bddb39395d4e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/salbmp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index add628e2e282..00ccab05be18 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -335,7 +335,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, sal_uInt16 nBits, const
return 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->biWidth = rSize.Width();