Extended loplugin:referencecasting/redundantcast (clang-cl): embedserv
Change-Id: I342859fbeaffee5d396cbb6ae3e5db41f5cdbb79 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122886 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
bf59a45b04
commit
4e60d1a4c9
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP EmbedDocument_Impl::GetData( FORMATETC * pForm
|
|||
pMedium->tymed = TYMED_ISTORAGE;
|
||||
pMedium->pstg = pNewStg;
|
||||
pMedium->pstg->AddRef();
|
||||
pMedium->pUnkForRelease = static_cast<IUnknown*>(pNewStg);
|
||||
pMedium->pUnkForRelease = pNewStg;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::Release()
|
|||
COM_DECLSPEC_NOTHROW STDMETHODIMP EmbedProviderFactory_Impl::CreateInstance(IUnknown*,
|
||||
REFIID riid, void** ppv)
|
||||
{
|
||||
IUnknown* pEmbedDocument = static_cast<IUnknown*>(static_cast<IPersistStorage*>( new EmbedDocument_Impl( m_xFactory, &m_guid ) ));
|
||||
IUnknown* pEmbedDocument = static_cast<IPersistStorage*>( new EmbedDocument_Impl( m_xFactory, &m_guid ) );
|
||||
|
||||
return pEmbedDocument->QueryInterface( riid, ppv );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue