summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-09-15 10:29:37 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-09-15 10:29:37 +0200
commitf5beefb2eaf4bc513aebdc11355890dff3f040fa (patch)
tree3d6f5090122744a44f9ea4286c5ddc35b78e6c52
parent25ebe01cf39eba32e8e65995d709e5e803b627a1 (diff)
Fix some "Variables reassigned a value before the old one has been used"
Change-Id: I38d62d2c095b87f08d37acfc26df07a4920be4d2
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index 8b3f3c24aa05..cea1990b81f8 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -508,13 +508,10 @@ Size SAL_CALL ProgressMonitor::getPreferredSize () throw( RuntimeException )
aGuard.clear () ;
// calc preferred size of progressmonitor
- sal_Int32 nWidth = 0 ;
- sal_Int32 nHeight = 0 ;
-
- nWidth = 3 * PROGRESSMONITOR_FREEBORDER ;
+ sal_Int32 nWidth = 3 * PROGRESSMONITOR_FREEBORDER ;
nWidth += aProgressBarSize.Width ;
- nHeight = 6 * PROGRESSMONITOR_FREEBORDER ;
+ sal_Int32 nHeight = 6 * PROGRESSMONITOR_FREEBORDER ;
nHeight += aTopicSize_Top.Height ;
nHeight += aProgressBarSize.Height ;
nHeight += aTopicSize_Bottom.Height;