diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-09-30 12:43:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-09-30 15:54:35 +0200 |
commit | a247d574fa32770b19875e8ca967a32a32ef0f36 (patch) | |
tree | 2a88f8b5c1270f6a66241b23941ebdf9ae70c8b6 /extensions/source/ole/unoobjw.cxx | |
parent | 41c675fa5984659907c51abc6408ed7f9f91172c (diff) |
Extended loplugin:referencecasting/redundantcast (clang-cl): extensions
Change-Id: Ifd431845dc9bb53b87be400a3f5635c8fdc4b2fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122885
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/ole/unoobjw.cxx')
-rw-r--r-- | extensions/source/ole/unoobjw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index a6cd0677d6ae..21debd9f54cc 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -1502,7 +1502,7 @@ Any SAL_CALL InterfaceOleWrapper::createBridge(const Any& modelDepObject, if( pVar) { pVar->vt= VT_DISPATCH; - pVar->pdispVal= static_cast<IDispatch*>( this); + pVar->pdispVal= this; AddRef(); retAny<<= reinterpret_cast< sal_uIntPtr >( pVar); @@ -2763,7 +2763,7 @@ HRESULT InterfaceOleWrapper::InvokeGeneral( DISPID dispidMember, unsigned short if( m_defaultValueType == VT_DISPATCH) { pvarResult->vt= VT_DISPATCH; - pvarResult->pdispVal= static_cast<IDispatch*>( this); + pvarResult->pdispVal= this; AddRef(); ret= S_OK; } |