More loplugin:cstylecast: vbahelper

Change-Id: I3d9d907dc675cf6d9d95539700ce9d443a9fda98
This commit is contained in:
Stephan Bergmann
2018-01-15 09:01:26 +01:00
parent 72e3c23410
commit 1a19ee6eb2

View File

@@ -231,7 +231,7 @@ VbaFontBase::setItalic( const uno::Any& aValue )
awt::FontSlant nValue = awt::FontSlant_NONE;
if( bValue )
nValue = awt::FontSlant_ITALIC;
mxFont->setPropertyValue( VBAFONTBASE_PROPNAME( "CharPosture", "FontSlant" ), uno::Any( (short)nValue ) );
mxFont->setPropertyValue( VBAFONTBASE_PROPNAME( "CharPosture", "FontSlant" ), uno::Any( static_cast<short>(nValue) ) );
}
uno::Any SAL_CALL