diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
commit | a5eddfbf45277eea21dd2271b36e9668313eadf3 (patch) | |
tree | 21ed6f32d767656ad1c577fd7cc948f5ca22f0f3 /sw/source/filter/html/htmlforw.cxx | |
parent | 87e3d60776db4e2ff1ba0040b04a0fa348a46ffa (diff) |
More loplugin:cstylecast: sw
Change-Id: I75f75b53e58221a3bd0a6eb837483e7ebae3a02b
Diffstat (limited to 'sw/source/filter/html/htmlforw.cxx')
-rw-r--r-- | sw/source/filter/html/htmlforw.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx index cf12af48e9c9..cd2548cd0a26 100644 --- a/sw/source/filter/html/htmlforw.cxx +++ b/sw/source/filter/html/htmlforw.cxx @@ -1088,7 +1088,7 @@ Writer& OutHTML_DrawFrameFormatAsControl( Writer& rWrt, { auto aTmp2 = xPropSet->getPropertyValue( "FontFamily" ); if( auto n = o3tl::tryAccess<sal_Int16>(aTmp2) ) - eFamily = (FontFamily)*n; + eFamily = static_cast<FontFamily>(*n); } SvxFontItem aItem( eFamily, *aFName, aEmptyOUStr, PITCH_DONTKNOW, RTL_TEXTENCODING_DONTKNOW, RES_CHRATR_FONT ); aItemSet.Put( aItem ); @@ -1112,7 +1112,7 @@ Writer& OutHTML_DrawFrameFormatAsControl( Writer& rWrt, aTmp = xPropSet->getPropertyValue( "FontSlant" ); if( auto n = o3tl::tryAccess<sal_Int16>(aTmp) ) { - FontItalic eItalic = (FontItalic)*n; + FontItalic eItalic = static_cast<FontItalic>(*n); if( eItalic != ITALIC_DONTKNOW && eItalic != ITALIC_NONE ) aItemSet.Put( SvxPostureItem( eItalic, RES_CHRATR_POSTURE ) ); } @@ -1122,7 +1122,7 @@ Writer& OutHTML_DrawFrameFormatAsControl( Writer& rWrt, aTmp = xPropSet->getPropertyValue( "FontLineStyle" ); if( auto n = o3tl::tryAccess<sal_Int16>(aTmp) ) { - FontLineStyle eUnderline = (FontLineStyle)*n; + FontLineStyle eUnderline = static_cast<FontLineStyle>(*n); if( eUnderline != LINESTYLE_DONTKNOW && eUnderline != LINESTYLE_NONE ) aItemSet.Put( SvxUnderlineItem( eUnderline, RES_CHRATR_UNDERLINE ) ); @@ -1133,7 +1133,7 @@ Writer& OutHTML_DrawFrameFormatAsControl( Writer& rWrt, aTmp = xPropSet->getPropertyValue( "FontStrikeout" ); if( auto n = o3tl::tryAccess<sal_Int16>(aTmp) ) { - FontStrikeout eStrikeout = (FontStrikeout)*n; + FontStrikeout eStrikeout = static_cast<FontStrikeout>(*n); if( eStrikeout != STRIKEOUT_DONTKNOW && eStrikeout != STRIKEOUT_NONE ) aItemSet.Put( SvxCrossedOutItem( eStrikeout, RES_CHRATR_CROSSEDOUT ) ); |