diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
commit | 6bf5ebc0019a605d4add8185b8bc4180c4e20088 (patch) | |
tree | 9f3693b5a8aebeae8439c25d29d7cf4297693f0a /stoc/source/corereflection/criface.cxx | |
parent | eac0f3023c920325a4c58bcf6d5d57041128c06e (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/corereflection/criface.cxx')
-rw-r--r-- | stoc/source/corereflection/criface.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index 98aaf0ada281..e8b6a1986bc7 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx @@ -201,7 +201,7 @@ Any IdlAttributeFieldImpl::get( const Any & rObj ) } throw IllegalArgumentException( "illegal object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) @@ -211,7 +211,7 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) { throw IllegalAccessException( "cannot set readonly attribute!", - (XWeak *)(OWeakObject *)this ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)) ); } uno_Interface * pUnoI = getReflection()->mapToUno( @@ -291,7 +291,7 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) } throw IllegalArgumentException( "illegal destination object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } void IdlAttributeFieldImpl::set( const Any & rObj, const Any & rValue ) @@ -759,7 +759,7 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & } throw IllegalArgumentException( "illegal destination object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } |