diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:16:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:46 +0100 |
commit | 876413440d051f7bae8b3d222320f4bc3b617b79 (patch) | |
tree | dd115b0b28954f6da80a45c01c2ed98a95842aa2 | |
parent | 19970e90fe52e8ab987f6adafa353d5c2cd37ac9 (diff) |
Some more loplugin:cstylecast: comphelper
Change-Id: I6d3ffb195a7c9a3c44744d296fb9d9eca00115cd
-rw-r--r-- | comphelper/source/misc/docpasswordhelper.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/misc/evtmethodhelper.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/misc/storagehelper.cxx | 2 | ||||
-rw-r--r-- | include/comphelper/servicehelper.hxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index 4bda261e5611..fdcb8a02993a 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -288,7 +288,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( uno::Sequence< sal_Int8 > aResultKey; if ( aDocId.getLength() == 16 ) - aResultKey = GenerateStd97Key(pPassData, (const sal_uInt8*)aDocId.getConstArray()); + aResultKey = GenerateStd97Key(pPassData, reinterpret_cast<const sal_uInt8*>(aDocId.getConstArray())); return aResultKey; } @@ -338,7 +338,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( // Fill raw digest of above updates aResultKey.realloc( RTL_DIGEST_LENGTH_MD5 ); - rtl_digest_rawMD5 ( hDigest, (sal_uInt8*)aResultKey.getArray(), aResultKey.getLength() ); + rtl_digest_rawMD5 ( hDigest, reinterpret_cast<sal_uInt8*>(aResultKey.getArray()), aResultKey.getLength() ); // Erase KeyData array and leave. memset( pKeyData, 0, sizeof(pKeyData) ); diff --git a/comphelper/source/misc/evtmethodhelper.cxx b/comphelper/source/misc/evtmethodhelper.cxx index 2f5cf957e252..01f5d6f65d12 100644 --- a/comphelper/source/misc/evtmethodhelper.cxx +++ b/comphelper/source/misc/evtmethodhelper.cxx @@ -29,7 +29,7 @@ namespace comphelper Sequence< OUString> getEventMethodsForType(const Type& type) { typelib_InterfaceTypeDescription *pType=0; - type.getDescription( (typelib_TypeDescription**)&pType); + type.getDescription(reinterpret_cast<typelib_TypeDescription**>(&pType)); if(!pType) return Sequence< OUString>(); @@ -50,7 +50,7 @@ namespace comphelper *pNames = pRealMemberDescription->pMemberName; } } - typelib_typedescription_release( (typelib_TypeDescription *)pType ); + typelib_typedescription_release( &pType->aBase ); return aNames; } diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 2b01808f55d1..03b8ce4c4df5 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -439,7 +439,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( break; } - aEncryptionData[nSha1Ind+nInd].Value <<= uno::Sequence< sal_Int8 >( (sal_Int8*)pBuffer, RTL_DIGEST_LENGTH_SHA1 ); + aEncryptionData[nSha1Ind+nInd].Value <<= uno::Sequence< sal_Int8 >( reinterpret_cast<sal_Int8*>(pBuffer), RTL_DIGEST_LENGTH_SHA1 ); } } diff --git a/include/comphelper/servicehelper.hxx b/include/comphelper/servicehelper.hxx index 73064cd35897..1f5f44a0ff32 100644 --- a/include/comphelper/servicehelper.hxx +++ b/include/comphelper/servicehelper.hxx @@ -31,7 +31,7 @@ private: public: UnoTunnelIdInit() : m_aSeq(16) { - rtl_createUuid( (sal_uInt8*)m_aSeq.getArray(), 0, sal_True ); + rtl_createUuid( reinterpret_cast<sal_uInt8*>(m_aSeq.getArray()), 0, sal_True ); } const ::com::sun::star::uno::Sequence< sal_Int8 >& getSeq() const { return m_aSeq; } }; |