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/crenum.cxx | |
parent | eac0f3023c920325a4c58bcf6d5d57041128c06e (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/corereflection/crenum.cxx')
-rw-r--r-- | stoc/source/corereflection/crenum.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/corereflection/crenum.cxx b/stoc/source/corereflection/crenum.cxx index 8cd09763aeb9..6910ab31b798 100644 --- a/stoc/source/corereflection/crenum.cxx +++ b/stoc/source/corereflection/crenum.cxx @@ -156,7 +156,7 @@ void IdlEnumFieldImpl::set( const Any &, const Any & ) { throw IllegalAccessException( "enum field is constant!", - (XWeak *)(OWeakObject *)this ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)) ); } void IdlEnumFieldImpl::set( Any &, const Any & ) @@ -164,7 +164,7 @@ void IdlEnumFieldImpl::set( Any &, const Any & ) { throw IllegalAccessException( "enum field is constant!", - (XWeak *)(OWeakObject *)this ); + static_cast<XWeak *>(static_cast<OWeakObject *>(this)) ); } |