summaryrefslogtreecommitdiff
path: root/chart2/source/view/main
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-05 13:36:51 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-05 13:36:51 +0100
commitd78b578d20a7ed3b61db8752c2e00d78c4ca18ff (patch)
treeb450f67fda78190f26509597bcf00c01d810a696 /chart2/source/view/main
parentb9811d828e442a86c3fe8a1aeb87f9b300e912d5 (diff)
Some cppcheck cleaning
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r--chart2/source/view/main/LabelPositionHelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/LabelPositionHelper.cxx b/chart2/source/view/main/LabelPositionHelper.cxx
index cd4030f421e8..5bb2a5f08d07 100644
--- a/chart2/source/view/main/LabelPositionHelper.cxx
+++ b/chart2/source/view/main/LabelPositionHelper.cxx
@@ -99,10 +99,10 @@ void lcl_doDynamicFontResize( uno::Any* pAOldAndNewFontHeightAny
, const awt::Size& rOldReferenceSize
, const awt::Size& rNewReferenceSize )
{
- double fOldFontHeight = 0, fNewFontHeight;
+ double fOldFontHeight = 0;
if( pAOldAndNewFontHeightAny && ( *pAOldAndNewFontHeightAny >>= fOldFontHeight ) )
{
- fNewFontHeight = RelativeSizeHelper::calculate( fOldFontHeight, rOldReferenceSize, rNewReferenceSize );
+ double fNewFontHeight = RelativeSizeHelper::calculate( fOldFontHeight, rOldReferenceSize, rNewReferenceSize );
*pAOldAndNewFontHeightAny = uno::makeAny(fNewFontHeight);
}
}