diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:32:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-06 18:32:51 +0200 |
commit | 0791c51c724b07b52b6bf37994cbd3659cfc40e5 (patch) | |
tree | cf0ef221e63c57ecf672f8cbf4afd19ec3640878 /cui | |
parent | f4cd4b3cf9a0074a8fa4796cd63c063162e1dced (diff) |
Improved loplugin:redundantcast, static_cast on arithmetic types: cui
Change-Id: I2060dc58167e5bf5ee8244a56970c399f53fe237
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpbitmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx index 722170ece74e..fcec24ae3356 100644 --- a/cui/source/tabpages/tpbitmap.cxx +++ b/cui/source/tabpages/tpbitmap.cxx @@ -348,7 +348,7 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* rAttrs ) else if(nWidth < 0) { eRelative = TRISTATE_TRUE; - nWidth = static_cast<long>(std::abs(nWidth)); + nWidth = std::abs(nWidth); } } @@ -360,15 +360,15 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* rAttrs ) else if(nHeight < 0) { eRelative = TRISTATE_TRUE; - nHeight = static_cast<long>(std::abs(nHeight)); + nHeight = std::abs(nHeight); } } m_pTsbScale->SetState(eRelative); if(eRelative != TRISTATE_TRUE) { - nWidth = (OutputDevice::LogicToLogic(static_cast<long>(nWidth), mePoolUnit, MapUnit::Map100thMM )) / fUIScale; - nHeight = (OutputDevice::LogicToLogic(static_cast<long>(nHeight), mePoolUnit, MapUnit::Map100thMM )) / fUIScale; + nWidth = (OutputDevice::LogicToLogic(nWidth, mePoolUnit, MapUnit::Map100thMM )) / fUIScale; + nHeight = (OutputDevice::LogicToLogic(nHeight, mePoolUnit, MapUnit::Map100thMM )) / fUIScale; } if(m_pBitmapStyleLB->GetSelectEntryPos() == 0) |