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

More loplugin:cstylecast: stoc

Change-Id: Ia17ce4e8dbbc4288720c98c5101e4399d84075b8
üst 6a6cf93a
...@@ -54,7 +54,7 @@ IdlClassImpl::IdlClassImpl( IdlReflectionServiceImpl * pReflection, ...@@ -54,7 +54,7 @@ IdlClassImpl::IdlClassImpl( IdlReflectionServiceImpl * pReflection,
typelib_TypeDescription * pTypeDescr ) typelib_TypeDescription * pTypeDescr )
: m_xReflection( pReflection ) : m_xReflection( pReflection )
, _aName( rName ) , _aName( rName )
, _eTypeClass( (TypeClass)eTypeClass ) , _eTypeClass( static_cast<TypeClass>(eTypeClass) )
, _pTypeDescr( pTypeDescr ) , _pTypeDescr( pTypeDescr )
{ {
if (_pTypeDescr) if (_pTypeDescr)
...@@ -131,7 +131,7 @@ sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) ...@@ -131,7 +131,7 @@ sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
if (eAssign > TypeClass_VOID && eAssign < TypeClass_STRING && if (eAssign > TypeClass_VOID && eAssign < TypeClass_STRING &&
eFrom > TypeClass_VOID && eFrom < TypeClass_STRING) eFrom > TypeClass_VOID && eFrom < TypeClass_STRING)
{ {
return s_aAssignableFromTab[(int)eAssign-1][(int)eFrom-1]; return s_aAssignableFromTab[static_cast<int>(eAssign)-1][static_cast<int>(eFrom)-1];
} }
} }
return false; return false;
......
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