diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:55 +0100 |
commit | c049c76fc521f2b55b39a6e9eb0f0092bcf6ef77 (patch) | |
tree | 2bc2c059a6f6a175a0c0e5321887adc077fef419 /svx/source/sidebar/line/LineWidthPopup.cxx | |
parent | 0ae2d98d1f6d29c80bd1ee830db4c333e4ee1e1d (diff) |
More loplugin:cstylecast: svx
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7
Diffstat (limited to 'svx/source/sidebar/line/LineWidthPopup.cxx')
-rw-r--r-- | svx/source/sidebar/line/LineWidthPopup.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<long>(m_xMFWidth->GetValue()); long nVal = LogicToLogic( nTmp, MapUnit::MapPoint, m_eMapUnit ); - sal_Int32 nNewWidth = (short)m_xMFWidth->Denormalize( nVal ); + sal_Int32 nNewWidth = static_cast<short>(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<double>(m_nCustomWidth) / 10)); aStrTip += m_sPt; m_xVSWidth->SetItemText(9, aStrTip); } |