summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-01 08:53:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-01 08:53:14 +0200
commitbfff963fefa930839171c4233699339979f3ceec (patch)
treeaf5863238a8f697a20275d946c855c2073bc4096 /chart2
parentfaddbce32ed863bda4238e54dd11df1b468ccd86 (diff)
clang-analyzer-deadcode.DeadStores
...after 0f17e343306fd457c542067c09242ddd04ca39e9 "loplugin:singlevalfields in chart2" Change-Id: I111d6a0eb5380d9559799db348deb43594f90630
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/BubbleChart.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx
index 2f8f9c7dc8dd..df523dd9226d 100644
--- a/chart2/source/view/charttypes/BubbleChart.cxx
+++ b/chart2/source/view/charttypes/BubbleChart.cxx
@@ -130,10 +130,8 @@ drawing::Direction3D BubbleChart::transformToScreenBubbleSize( double fLogicSize
double fMaxSize = m_fMaxLogicBubbleSize;
- double fMaxRadius = fMaxSize;
- double fRaduis = fLogicSize;
- fMaxRadius = sqrt( fMaxSize / F_PI );
- fRaduis = sqrt( fLogicSize / F_PI );
+ double fMaxRadius = sqrt( fMaxSize / F_PI );
+ double fRaduis = sqrt( fLogicSize / F_PI );
aRet.DirectionX = m_fBubbleSizeScaling * m_fBubbleSizeFactorToScreen * fRaduis / fMaxRadius;
aRet.DirectionY = aRet.DirectionX;