diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:01 +0200 |
commit | 54bac4ddafbf330ad2ab17d69f09d5f67664d01b (patch) | |
tree | d1a9b1e9d7009e88fc3ea6be657b481a0b32b7c2 /sot/source/base | |
parent | 42590fd2aa73c77c07b62ef1dcc823e17f6bb1e9 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I82142b0a0fabf9492ce4c4b9ebf4fded4af5a82d
Diffstat (limited to 'sot/source/base')
-rw-r--r-- | sot/source/base/factory.cxx | 2 | ||||
-rw-r--r-- | sot/source/base/formats.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/base/factory.cxx b/sot/source/base/factory.cxx index cade244c5698..7f13cf9fcfd7 100644 --- a/sot/source/base/factory.cxx +++ b/sot/source/base/factory.cxx @@ -145,7 +145,7 @@ void SotFactory::PutSuperClass( const SotFactory * pFact ) else { const SotFactory ** pTmp = new const SotFactory * [ nSuperCount ]; - memcpy( (void *)pTmp, (void *)pSuperClasses, + memcpy( static_cast<void *>(pTmp), static_cast<void *>(pSuperClasses), sizeof( void * ) * (nSuperCount -1) ); delete [] pSuperClasses; pSuperClasses = pTmp; diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx index 7b2f8979b968..e0d7bc22a0fb 100644 --- a/sot/source/base/formats.cxx +++ b/sot/source/base/formats.cxx @@ -1414,7 +1414,7 @@ static sal_uInt16 GetTransferableAction_Impl( if( aAny.hasValue() ) { Sequence< sal_Int8 > aSeq; aAny >>= aSeq; - SvMemoryStream aMemStm( (void*) aSeq.getConstArray(), aSeq.getLength(), StreamMode::READ ); + SvMemoryStream aMemStm( const_cast<sal_Int8 *>(aSeq.getConstArray()), aSeq.getLength(), StreamMode::READ ); FileList aFileList; ReadFileList( aMemStm, aFileList ); |