summaryrefslogtreecommitdiff
path: root/stoc/source/corereflection/crcomp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-18 21:32:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:51 +0100
commitc2c134cda1c501df6b9eec580a63131dbf798f12 (patch)
tree3ae6c0fe2608ebaff260658e4ba36710c7bb8b35 /stoc/source/corereflection/crcomp.cxx
parentd6ca554fa0a41372f015875115165df614cdda68 (diff)
Some more loplugin:cstylecast: stoc
Change-Id: I3d820a1df3750d20e704a163f45c16ea29a1b4bd
Diffstat (limited to 'stoc/source/corereflection/crcomp.cxx')
-rw-r--r--stoc/source/corereflection/crcomp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx
index b0bf547f9f4f..9805938c56f0 100644
--- a/stoc/source/corereflection/crcomp.cxx
+++ b/stoc/source/corereflection/crcomp.cxx
@@ -129,7 +129,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
if (! _xDeclClass.is())
{
typelib_CompoundTypeDescription * pTD =
- (typelib_CompoundTypeDescription *)getDeclTypeDescr();
+ reinterpret_cast<typelib_CompoundTypeDescription *>(getDeclTypeDescr());
while (pTD)
{
typelib_TypeDescriptionReference ** ppTypeRefs = pTD->ppTypeRefs;
@@ -137,7 +137,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
{
if (td_equals( (typelib_TypeDescription *)getTypeDescr(), ppTypeRefs[nPos] ))
{
- _xDeclClass = getReflection()->forType( (typelib_TypeDescription *)pTD );
+ _xDeclClass = getReflection()->forType( &pTD->aBase );
return _xDeclClass;
}
}
@@ -180,7 +180,7 @@ Any IdlCompFieldImpl::get( const Any & rObj )
typelib_TypeDescription * pTD = pObjTD;
typelib_TypeDescription * pDeclTD = getDeclTypeDescr();
while (pTD && !typelib_typedescription_equals( pTD, pDeclTD ))
- pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription;
+ pTD = &reinterpret_cast<typelib_CompoundTypeDescription *>(pTD)->pBaseTypeDescription->aBase;
OSL_ENSURE( pTD, "### illegal object type!" );
if (pTD)
@@ -213,7 +213,7 @@ void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue )
typelib_TypeDescription * pTD = pObjTD;
typelib_TypeDescription * pDeclTD = getDeclTypeDescr();
while (pTD && !typelib_typedescription_equals( pTD, pDeclTD ))
- pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription;
+ pTD = &reinterpret_cast<typelib_CompoundTypeDescription *>(pTD)->pBaseTypeDescription->aBase;
OSL_ENSURE( pTD, "### illegal object type!" );
if (pTD)
@@ -250,7 +250,7 @@ void IdlCompFieldImpl::set( Any & rObj, const Any & rValue )
typelib_TypeDescription * pTD = pObjTD;
typelib_TypeDescription * pDeclTD = getDeclTypeDescr();
while (pTD && !typelib_typedescription_equals( pTD, pDeclTD ))
- pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription;
+ pTD = &reinterpret_cast<typelib_CompoundTypeDescription *>(pTD)->pBaseTypeDescription->aBase;
OSL_ENSURE( pTD, "### illegal object type!" );
if (pTD)
@@ -320,7 +320,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
{
typelib_CompoundTypeDescription * pCompTypeDescr = getTypeDescr()->pBaseTypeDescription;
if (pCompTypeDescr)
- _xSuperClass = getReflection()->forType( (typelib_TypeDescription *)pCompTypeDescr );
+ _xSuperClass = getReflection()->forType( &pCompTypeDescr->aBase );
}
}
if (_xSuperClass.is())