diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-18 21:37:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:52 +0100 |
commit | 17fe7fc590b999005a76475d62821f8ac63f2124 (patch) | |
tree | 29b39c20288c0edd0e28cb0e9b96830fd66f0a34 /toolkit | |
parent | e935f05c8014664b313f1a0c3ecadfd0fab044b4 (diff) |
Some more loplugin:cstylecast: toolkit
Change-Id: I8f2963e7bbd1053ea12af22424f4f7a0f65a3486
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxprinter.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/helper/accessibilityclient.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index f62d53558c01..15adc111e65e 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -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!" ); diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 38b550270d6b..70e7b8e5c8ea 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -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; diff --git a/toolkit/source/helper/accessibilityclient.cxx b/toolkit/source/helper/accessibilityclient.cxx index 007160484c82..ecf3c3c624ba 100644 --- a/toolkit/source/helper/accessibilityclient.cxx +++ b/toolkit/source/helper/accessibilityclient.cxx @@ -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!" ); diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index 33e78de1c845..43d34d334410 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -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 ); |