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

Improved loplugin:redundantcast, static_cast on arithmetic types: svtools

Change-Id: Idcd8a32f85788fe0d763c2f72475e3bef4221366
üst 42c490fe
...@@ -654,7 +654,7 @@ ValueSetItem* ValueSetAcc::getItem (sal_uInt16 nIndex) const ...@@ -654,7 +654,7 @@ ValueSetItem* ValueSetAcc::getItem (sal_uInt16 nIndex) const
nIndex -= 1; nIndex -= 1;
} }
if (pItem == nullptr) if (pItem == nullptr)
pItem = mpParent->ImplGetItem (static_cast<sal_uInt16>(nIndex)); pItem = mpParent->ImplGetItem (nIndex);
return pItem; return pItem;
} }
......
...@@ -1012,7 +1012,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeX, Edit&, void) ...@@ -1012,7 +1012,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeX, Edit&, void)
Fraction aFract( 1, 100 ); Fraction aFract( 1, 100 );
sal_Int32 nWidth = mpMfSizeX->GetValue(); sal_Int32 nWidth = mpMfSizeX->GetValue();
sal_Int32 nHeight= static_cast< sal_Int32 >( nWidth * fRatio ); sal_Int32 nHeight= static_cast< sal_Int32 >( nWidth * fRatio );
const Size aSource( static_cast< sal_Int32 >( nWidth ), static_cast< sal_Int32 >( nHeight ) ); const Size aSource( nWidth, nHeight );
MapMode aSourceMapMode( GetMapUnit( mpLbSizeX->GetSelectEntryPos() ),Point(), aFract, aFract ); MapMode aSourceMapMode( GetMapUnit( mpLbSizeX->GetSelectEntryPos() ),Point(), aFract, aFract );
Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) ); Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) );
...@@ -1044,7 +1044,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeY, Edit&, void) ...@@ -1044,7 +1044,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeY, Edit&, void)
Fraction aFract( 1, 100 ); Fraction aFract( 1, 100 );
sal_Int32 nHeight= mpMfSizeY->GetValue(); sal_Int32 nHeight= mpMfSizeY->GetValue();
sal_Int32 nWidth = static_cast< sal_Int32 >( nHeight * fRatio ); sal_Int32 nWidth = static_cast< sal_Int32 >( nHeight * fRatio );
const Size aSource( static_cast< sal_Int32 >( nWidth ), static_cast< sal_Int32 >( nHeight ) ); const Size aSource( nWidth, nHeight );
MapMode aSourceMapMode( GetMapUnit( mpLbSizeX->GetSelectEntryPos() ),Point(), aFract, aFract ); MapMode aSourceMapMode( GetMapUnit( mpLbSizeX->GetSelectEntryPos() ),Point(), aFract, aFract );
Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) ); Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) );
......
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