diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
commit | abf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (patch) | |
tree | 6e0208e0450308652be1a0a512f98023b35ca489 /sd/source/filter/eppt/pptx-stylesheet.cxx | |
parent | b271fb5ba1a8f7da2120d7037de087b02eb16c91 (diff) |
More loplugin:cstylecast: sd
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I144975b94fe2725ac740a953ca2133e99f8a3fce
Diffstat (limited to 'sd/source/filter/eppt/pptx-stylesheet.cxx')
-rw-r--r-- | sd/source/filter/eppt/pptx-stylesheet.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/filter/eppt/pptx-stylesheet.cxx b/sd/source/filter/eppt/pptx-stylesheet.cxx index 693607413215..d71241ec9de6 100644 --- a/sd/source/filter/eppt/pptx-stylesheet.cxx +++ b/sd/source/filter/eppt/pptx-stylesheet.cxx @@ -243,21 +243,21 @@ void PPTExParaSheet::SetStyleSheet( const css::uno::Reference< css::beans::XProp { const FontCollectionEntry* pDesc = rFontCollection.GetById( rCharLevel.mnFont ); if ( pDesc ) - nLineSpacing = (sal_Int16)( (double)nLineSpacing * pDesc->Scaling + 0.5 ); + nLineSpacing = static_cast<sal_Int16>( static_cast<double>(nLineSpacing) * pDesc->Scaling + 0.5 ); } } else { - if ( rCharLevel.mnFontHeight > (sal_uInt16)( ((double)-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point + if ( rCharLevel.mnFontHeight > static_cast<sal_uInt16>( static_cast<double>(-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point { const FontCollectionEntry* pDesc = rFontCollection.GetById( rCharLevel.mnFont ); if ( pDesc ) - nLineSpacing = (sal_Int16)( 100.0 * pDesc->Scaling + 0.5 ); + nLineSpacing = static_cast<sal_Int16>( 100.0 * pDesc->Scaling + 0.5 ); else nLineSpacing = 100; } else - nLineSpacing = (sal_Int16)( (double)nLineSpacing / 4.40972 ); + nLineSpacing = static_cast<sal_Int16>( static_cast<double>(nLineSpacing) / 4.40972 ); } rLev.mnLineFeed = nLineSpacing; } @@ -294,11 +294,11 @@ void PPTExParaSheet::SetStyleSheet( const css::uno::Reference< css::beans::XProp if ( i ) aParagraphObj.ImplGetNumberingLevel( pBuProv, i, false, false ); rLevel.mnTextOfs = aParagraphObj.nTextOfs; - rLevel.mnBulletOfs = (sal_uInt16)aParagraphObj.nBulletOfs; + rLevel.mnBulletOfs = static_cast<sal_uInt16>(aParagraphObj.nBulletOfs); rLevel.mnBulletChar = aParagraphObj.cBulletId; FontCollectionEntry aFontDescEntry( aParagraphObj.aFontDesc.Name, aParagraphObj.aFontDesc.Family, aParagraphObj.aFontDesc.Pitch, aParagraphObj.aFontDesc.CharSet ); - rLevel.mnBulletFont = (sal_uInt16)rFontCollection.GetId( aFontDescEntry ); + rLevel.mnBulletFont = static_cast<sal_uInt16>(rFontCollection.GetId( aFontDescEntry )); rLevel.mnBulletHeight = aParagraphObj.nBulletRealSize; rLevel.mnBulletColor = aParagraphObj.nBulletColor; |