Kaydet (Commit) 17fe7fc5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more loplugin:cstylecast: toolkit

Change-Id: I8f2963e7bbd1053ea12af22424f4f7a0f65a3486
üst e935f05c
......@@ -250,7 +250,7 @@ void VCLXPrinterPropertySet::setBinarySetup( const ::com::sun::star::uno::Sequen
{
::osl::MutexGuard aGuard( Mutex );
SvMemoryStream aMem( (char*) data.getConstArray(), data.getLength(), StreamMode::READ );
SvMemoryStream aMem( const_cast<signed char*>(data.getConstArray()), data.getLength(), StreamMode::READ );
sal_uInt32 nMarker;
aMem.ReadUInt32( nMarker );
DBG_ASSERT( nMarker == BINARYSETUPMARKER, "setBinarySetup - invalid!" );
......
......@@ -1060,7 +1060,7 @@ vcl::Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
{
sal_Int8 processID[16];
rtl_getGlobalProcessId( (sal_uInt8*)processID );
rtl_getGlobalProcessId( reinterpret_cast<sal_uInt8*>(processID) );
::com::sun::star::uno::Sequence<sal_Int8> processIdSeq((sal_Int8*)processID, 16);
......@@ -1212,7 +1212,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
if ( hSvToolsLib )
{
OUString aFunctionName( "CreateWindow" );
fnSvtCreateWindow = (FN_SvtCreateWindow)osl_getFunctionSymbol( hSvToolsLib, aFunctionName.pData );
fnSvtCreateWindow = reinterpret_cast<FN_SvtCreateWindow>(osl_getFunctionSymbol( hSvToolsLib, aFunctionName.pData ));
}
#else
fnSvtCreateWindow = CreateWindow;
......
......@@ -168,8 +168,8 @@ namespace toolkit
{
const OUString sFactoryCreationFunc =
OUString("getStandardAccessibleFactory");
s_pAccessibleFactoryFunc = (GetStandardAccComponentFactory)
osl_getFunctionSymbol( s_hAccessibleImplementationModule, sFactoryCreationFunc.pData );
s_pAccessibleFactoryFunc = reinterpret_cast<GetStandardAccComponentFactory>(
osl_getFunctionSymbol( s_hAccessibleImplementationModule, sFactoryCreationFunc.pData ));
}
OSL_ENSURE( s_pAccessibleFactoryFunc, "AccessibilityClient::ensureInitialized: could not load the library, or not retrieve the needed symbol!" );
......
......@@ -87,12 +87,12 @@ BitmapEx VCLUnoHelper::GetBitmap( const ::com::sun::star::uno::Reference< ::com:
Bitmap aDIB, aMask;
{
::com::sun::star::uno::Sequence<sal_Int8> aBytes = rxBitmap->getDIB();
SvMemoryStream aMem( (char*) aBytes.getArray(), aBytes.getLength(), StreamMode::READ );
SvMemoryStream aMem( aBytes.getArray(), aBytes.getLength(), StreamMode::READ );
ReadDIB(aDIB, aMem, true);
}
{
::com::sun::star::uno::Sequence<sal_Int8> aBytes = rxBitmap->getMaskDIB();
SvMemoryStream aMem( (char*) aBytes.getArray(), aBytes.getLength(), StreamMode::READ );
SvMemoryStream aMem( aBytes.getArray(), aBytes.getLength(), StreamMode::READ );
ReadDIB(aMask, aMem, true);
}
aBmp = BitmapEx( aDIB, aMask );
......
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