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

Some more loplugin:cstylecast: comphelper

Change-Id: I6d3ffb195a7c9a3c44744d296fb9d9eca00115cd
üst 19970e90
...@@ -288,7 +288,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( ...@@ -288,7 +288,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
uno::Sequence< sal_Int8 > aResultKey; uno::Sequence< sal_Int8 > aResultKey;
if ( aDocId.getLength() == 16 ) if ( aDocId.getLength() == 16 )
aResultKey = GenerateStd97Key(pPassData, (const sal_uInt8*)aDocId.getConstArray()); aResultKey = GenerateStd97Key(pPassData, reinterpret_cast<const sal_uInt8*>(aDocId.getConstArray()));
return aResultKey; return aResultKey;
} }
...@@ -338,7 +338,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( ...@@ -338,7 +338,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
// Fill raw digest of above updates // Fill raw digest of above updates
aResultKey.realloc( RTL_DIGEST_LENGTH_MD5 ); 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. // Erase KeyData array and leave.
memset( pKeyData, 0, sizeof(pKeyData) ); memset( pKeyData, 0, sizeof(pKeyData) );
......
...@@ -29,7 +29,7 @@ namespace comphelper ...@@ -29,7 +29,7 @@ namespace comphelper
Sequence< OUString> getEventMethodsForType(const Type& type) Sequence< OUString> getEventMethodsForType(const Type& type)
{ {
typelib_InterfaceTypeDescription *pType=0; typelib_InterfaceTypeDescription *pType=0;
type.getDescription( (typelib_TypeDescription**)&pType); type.getDescription(reinterpret_cast<typelib_TypeDescription**>(&pType));
if(!pType) if(!pType)
return Sequence< OUString>(); return Sequence< OUString>();
...@@ -50,7 +50,7 @@ namespace comphelper ...@@ -50,7 +50,7 @@ namespace comphelper
*pNames = pRealMemberDescription->pMemberName; *pNames = pRealMemberDescription->pMemberName;
} }
} }
typelib_typedescription_release( (typelib_TypeDescription *)pType ); typelib_typedescription_release( &pType->aBase );
return aNames; return aNames;
} }
......
...@@ -439,7 +439,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( ...@@ -439,7 +439,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData(
break; 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 );
} }
} }
......
...@@ -31,7 +31,7 @@ private: ...@@ -31,7 +31,7 @@ private:
public: public:
UnoTunnelIdInit() : m_aSeq(16) 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; } const ::com::sun::star::uno::Sequence< sal_Int8 >& getSeq() const { return m_aSeq; }
}; };
......
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