diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:31:03 +0200 |
commit | 2ced777e0cdf8240cc8567467b2008c3ae8230e3 (patch) | |
tree | c750931aaa1ca3a347c8593b6999d51954e37d59 /svtools | |
parent | 42c490fe71595ad692a5364cf15a9608d1abdf80 (diff) |
Improved loplugin:redundantcast, static_cast on arithmetic types: svtools
Change-Id: Idcd8a32f85788fe0d763c2f72475e3bef4221366
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 2 | ||||
-rw-r--r-- | svtools/source/filter/exportdialog.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 8610c3b7f641..1afc813baff6 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -654,7 +654,7 @@ ValueSetItem* ValueSetAcc::getItem (sal_uInt16 nIndex) const nIndex -= 1; } if (pItem == nullptr) - pItem = mpParent->ImplGetItem (static_cast<sal_uInt16>(nIndex)); + pItem = mpParent->ImplGetItem (nIndex); return pItem; } diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx index 645c8df7dd5f..228d265f65ff 100644 --- a/svtools/source/filter/exportdialog.cxx +++ b/svtools/source/filter/exportdialog.cxx @@ -1012,7 +1012,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeX, Edit&, void) Fraction aFract( 1, 100 ); sal_Int32 nWidth = mpMfSizeX->GetValue(); 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 ); Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) ); @@ -1044,7 +1044,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeY, Edit&, void) Fraction aFract( 1, 100 ); sal_Int32 nHeight= mpMfSizeY->GetValue(); 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 ); Size aDest( LogicToLogic( aSource, aSourceMapMode, MapUnit::Map100thMM ) ); |