summaryrefslogtreecommitdiff
path: root/UnoControls
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:30:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:30:25 +0100
commit8288796fe49d61dbfa46ac29c305e95b4b78e72e (patch)
tree7a3e611363119b826a03573c57930a5adf49eb66 /UnoControls
parentb72102d15286004ce47c2a4d7203ac42bc33bdd1 (diff)
More loplugin:cstylecast: UnoControls
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: I74f82404c624063eba8984617a59eaa08da775f5
Diffstat (limited to 'UnoControls')
-rw-r--r--UnoControls/source/controls/progressbar.cxx6
1 files changed, 3 insertions, 3 deletions
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<sal_Int32>((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<sal_Int32>(fBlockHeight);
+ m_aBlockSize.Width = static_cast<sal_Int32>(fBlockWidth);
}
} // namespace unocontrols