Kaydet (Commit) dcaf8af0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: Ib9c8485590d939491c9bb2cf3f2b8a70200da231
üst 77e6854a
......@@ -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;
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment