From 8288796fe49d61dbfa46ac29c305e95b4b78e72e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:30:25 +0100 Subject: More loplugin:cstylecast: UnoControls auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I74f82404c624063eba8984617a59eaa08da775f5 --- UnoControls/source/controls/progressbar.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'UnoControls') diff --git a/UnoControls/source/controls/progressbar.cxx b/UnoControls/source/controls/progressbar.cxx index dc1757a46cf9..ebffd5a44069 100644 --- a/UnoControls/source/controls/progressbar.cxx +++ b/UnoControls/source/controls/progressbar.cxx @@ -325,7 +325,7 @@ void ProgressBar::impl_paint ( sal_Int32 nX, sal_Int32 nY, const Reference< XGra rGraphics->setLineColor ( m_nForegroundColor ); sal_Int32 nBlockStart = 0; // = left site of new block - sal_Int32 nBlockCount = m_nBlockValue!=0.00 ? (sal_Int32)((m_nValue-m_nMinRange)/m_nBlockValue) : 0; // = number of next block + sal_Int32 nBlockCount = m_nBlockValue!=0.00 ? static_cast((m_nValue-m_nMinRange)/m_nBlockValue) : 0; // = number of next block // Draw horizontal progressbar // decision in "recalcRange()" @@ -405,8 +405,8 @@ void ProgressBar::impl_recalcRange () double fBlockValue = fRange/fMaxBlocks; m_nBlockValue = fBlockValue; - m_aBlockSize.Height = (sal_Int32)fBlockHeight; - m_aBlockSize.Width = (sal_Int32)fBlockWidth; + m_aBlockSize.Height = static_cast(fBlockHeight); + m_aBlockSize.Width = static_cast(fBlockWidth); } } // namespace unocontrols -- cgit v1.2.3