loplugin:cstylecast: nop between pointer types of exactly same spelling

Change-Id: Ib9c8485590d939491c9bb2cf3f2b8a70200da231
This commit is contained in:
Stephan Bergmann
2015-05-11 12:50:48 +02:00
parent 77e6854ab3
commit dcaf8af0f3
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
typelib_TypeDescriptionReference ** ppTypeRefs = pTD->ppTypeRefs;
for ( sal_Int32 nPos = pTD->nMembers; nPos--; )
{
if (td_equals( (typelib_TypeDescription *)getTypeDescr(), ppTypeRefs[nPos] ))
if (td_equals( getTypeDescr(), ppTypeRefs[nPos] ))
{
_xDeclClass = getReflection()->forType( &pTD->aBase );
return _xDeclClass;

View File

@@ -167,7 +167,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getType()
FieldAccessMode IdlAttributeFieldImpl::getAccessMode()
throw(css::uno::RuntimeException, std::exception)
{
return (((typelib_InterfaceAttributeTypeDescription *)getAttributeTypeDescr())->bReadOnly
return ((getAttributeTypeDescr())->bReadOnly
? FieldAccessMode_READONLY : FieldAccessMode_READWRITE);
}