From c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:13:55 +0100 Subject: More loplugin:cstylecast: svx auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7 --- svx/source/sidebar/line/LineWidthPopup.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/sidebar/line/LineWidthPopup.cxx') diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index bb9df56b2afa..72516cdc59d7 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -161,7 +161,7 @@ IMPL_LINK(LineWidthPopup, MFModifyHdl, Edit&, /*rControl*/, void) } long nTmp = static_cast(m_xMFWidth->GetValue()); long nVal = LogicToLogic( nTmp, MapUnit::MapPoint, m_eMapUnit ); - sal_Int32 nNewWidth = (short)m_xMFWidth->Denormalize( nVal ); + sal_Int32 nNewWidth = static_cast(m_xMFWidth->Denormalize( nVal )); XLineWidthItem aWidthItem(nNewWidth); m_rParent.setLineWidth(aWidthItem); } @@ -185,7 +185,7 @@ void LineWidthPopup::SetWidthSelect(long lValue, bool bValuable, MapUnit eMapUni m_xVSWidth->SetImage(m_aIMGCus); m_xVSWidth->SetCusEnable(true); - OUString aStrTip( OUString::number( (double)m_nCustomWidth / 10)); + OUString aStrTip( OUString::number( static_cast(m_nCustomWidth) / 10)); aStrTip += m_sPt; m_xVSWidth->SetItemText(9, aStrTip); } -- cgit