summaryrefslogtreecommitdiff
path: root/stoc/source/corereflection/crefl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:10 +0200
commit6bf5ebc0019a605d4add8185b8bc4180c4e20088 (patch)
tree9f3693b5a8aebeae8439c25d29d7cf4297693f0a /stoc/source/corereflection/crefl.cxx
parenteac0f3023c920325a4c58bcf6d5d57041128c06e (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/corereflection/crefl.cxx')
-rw-r--r--stoc/source/corereflection/crefl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index 8710cf96a8aa..83707ead3ed6 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -353,7 +353,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptio
}
throw RuntimeException(
"IdlReflectionServiceImpl::forType() failed!",
- (XWeak *)(OWeakObject *)this );
+ static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
@@ -373,7 +373,7 @@ const Mapping & IdlReflectionServiceImpl::getCpp2Uno()
{
throw RuntimeException(
"cannot get c++ to uno mapping!",
- (XWeak *)(OWeakObject *)this );
+ static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
}
}
@@ -396,7 +396,7 @@ const Mapping & IdlReflectionServiceImpl::getUno2Cpp()
{
throw RuntimeException(
"cannot get uno to c++ mapping!",
- (XWeak *)(OWeakObject *)this );
+ static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
}
}
@@ -413,7 +413,7 @@ uno_Interface * IdlReflectionServiceImpl::mapToUno(
throw RuntimeException(
"illegal object given!",
- (XWeak *)(OWeakObject *)this );
+ static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
@@ -421,7 +421,7 @@ Reference< XInterface > SAL_CALL IdlReflectionServiceImpl_create(
const Reference< XComponentContext > & xContext )
throw(css::uno::Exception)
{
- return Reference< XInterface >( (XWeak *)(OWeakObject *)new IdlReflectionServiceImpl( xContext ) );
+ return Reference< XInterface >( static_cast<XWeak *>(static_cast<OWeakObject *>(new IdlReflectionServiceImpl( xContext ))) );
}
}