From 0791c51c724b07b52b6bf37994cbd3659cfc40e5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 6 Apr 2017 18:32:51 +0200 Subject: Improved loplugin:redundantcast, static_cast on arithmetic types: cui Change-Id: I2060dc58167e5bf5ee8244a56970c399f53fe237 --- cui/source/tabpages/tpbitmap.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cui') 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(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(std::abs(nHeight)); + nHeight = std::abs(nHeight); } } m_pTsbScale->SetState(eRelative); if(eRelative != TRISTATE_TRUE) { - nWidth = (OutputDevice::LogicToLogic(static_cast(nWidth), mePoolUnit, MapUnit::Map100thMM )) / fUIScale; - nHeight = (OutputDevice::LogicToLogic(static_cast(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) -- cgit