diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-02-05 13:36:51 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-02-05 13:36:51 +0100 |
commit | d78b578d20a7ed3b61db8752c2e00d78c4ca18ff (patch) | |
tree | b450f67fda78190f26509597bcf00c01d810a696 /chart2/source/view/main/LabelPositionHelper.cxx | |
parent | b9811d828e442a86c3fe8a1aeb87f9b300e912d5 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'chart2/source/view/main/LabelPositionHelper.cxx')
-rw-r--r-- | chart2/source/view/main/LabelPositionHelper.cxx | 4 |
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); } } |