incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1363356 - /incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx
Date Thu, 19 Jul 2012 14:44:19 GMT
Author: alg
Date: Thu Jul 19 14:44:18 2012
New Revision: 1363356

URL: http://svn.apache.org/viewvc?rev=1363356&view=rev
Log:
Corrected static_cast which does not work on Win compiler, reinterpret cas needed (base classes
are not related)

Modified:
    incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx

Modified: incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx?rev=1363356&r1=1363355&r2=1363356&view=diff
==============================================================================
--- incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx (original)
+++ incubator/ooo/branches/AOO34/main/vcl/win/source/gdi/salbmp.cxx Thu Jul 19 14:44:18 2012
@@ -335,7 +335,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( con
 		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();



Mime
View raw message