diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-11 13:11:16 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-11 13:11:16 +0000 |
commit | 8b2994a4b2317906b000a7504873f9da45effffc (patch) | |
tree | 031dd4ab0b0cc46370656d4546af4c2852c2bc5d /chart2 | |
parent | bc23167d036f2b86f5335bd7b9c1dd3cf32bd9df (diff) |
#i10000#: cast
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/StatisticsHelper.cxx | 6 | ||||
-rw-r--r-- | chart2/source/view/axes/ScaleAutomatism.cxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/tools/StatisticsHelper.cxx b/chart2/source/tools/StatisticsHelper.cxx index e0d1a2ec4a52..abcb0460d3f5 100644 --- a/chart2/source/tools/StatisticsHelper.cxx +++ b/chart2/source/tools/StatisticsHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: StatisticsHelper.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: bm $ $Date: 2003-12-12 12:37:02 $ + * last change: $Author: hr $ $Date: 2004-05-11 14:09:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -144,7 +144,7 @@ double StatisticsHelper::getStandardError( const Sequence< double > & rData ) else { // standard-deviation / sqrt(n) - fResult = sqrt( fVar ) / sqrt( nValCount ); + fResult = sqrt( fVar ) / sqrt( double(nValCount) ); } return fResult; diff --git a/chart2/source/view/axes/ScaleAutomatism.cxx b/chart2/source/view/axes/ScaleAutomatism.cxx index 02b50039cafa..9f30e4482bb7 100644 --- a/chart2/source/view/axes/ScaleAutomatism.cxx +++ b/chart2/source/view/axes/ScaleAutomatism.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ScaleAutomatism.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: bm $ $Date: 2004-01-26 09:13:08 $ + * last change: $Author: hr $ $Date: 2004-05-11 14:11:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -168,7 +168,7 @@ ExplicitIncrementData getExplicitIncrementAndScaleForLogarithm( double fRange = rExplicitScale.Maximum - rExplicitScale.Minimum; double fSlice = fRange/nMaximumAutomaticMainIncrementCount; //make a fine value out of fSlice now: - double fSliceMagnitude = pow (10, floor (log10 (fSlice))); + double fSliceMagnitude = pow ( (double)10, floor (log10 (fSlice))); aRet.Distance = static_cast<sal_Int32>(fSlice/fSliceMagnitude)*fSliceMagnitude; } } @@ -267,7 +267,7 @@ ExplicitIncrementData getExplicitIncrementAndScaleForLinear( double fSlice = fRange/nMaximumAutomaticMainIncrementCount; //make a fine value out of fSlice now: - double fSliceMagnitude = pow (10, floor (log10 (fSlice))); + double fSliceMagnitude = pow ( (double)10, floor (log10 (fSlice))); fSlice /= fSliceMagnitude; if(fSlice<=1.0) fSlice=1.0; |