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/crcomp.cxx | |
parent | eac0f3023c920325a4c58bcf6d5d57041128c06e (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/corereflection/crcomp.cxx')
-rw-r--r-- | stoc/source/corereflection/crcomp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx index a49a69670e49..c085bd29bff4 100644 --- a/stoc/source/corereflection/crcomp.cxx +++ b/stoc/source/corereflection/crcomp.cxx @@ -198,7 +198,7 @@ Any IdlCompFieldImpl::get( const Any & rObj ) } throw IllegalArgumentException( "illegal object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue ) @@ -227,14 +227,14 @@ void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue ) { throw IllegalArgumentException( "illegal value given!", - (XWeak *)(OWeakObject *)this, 1 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 1 ); } } TYPELIB_DANGER_RELEASE( pObjTD ); } throw IllegalArgumentException( "illegal object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } @@ -264,14 +264,14 @@ void IdlCompFieldImpl::set( Any & rObj, const Any & rValue ) { throw IllegalArgumentException( "illegal value given!", - (XWeak *)(OWeakObject *)this, 1 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 1 ); } } TYPELIB_DANGER_RELEASE( pObjTD ); } throw IllegalArgumentException( "illegal object given!", - (XWeak *)(OWeakObject *)this, 0 ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)), 0 ); } |