diff options
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/inc/RegressionCalculationHelper.hxx | 3 | ||||
-rw-r--r-- | chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/chart2/source/inc/RegressionCalculationHelper.hxx b/chart2/source/inc/RegressionCalculationHelper.hxx index bd03e1cf9d57..8c886877f6c5 100644 --- a/chart2/source/inc/RegressionCalculationHelper.hxx +++ b/chart2/source/inc/RegressionCalculationHelper.hxx @@ -26,9 +26,6 @@ #include <functional> #include <vector> -#define UC_SPACE (sal_Unicode(' ')) -#define UC_MINUS_SIGN (sal_Unicode('-')) - namespace chart { namespace RegressionCalculationHelper diff --git a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx index 1d5251c0e7fe..d43d437e3a59 100644 --- a/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx +++ b/chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx @@ -141,12 +141,12 @@ OUString LogarithmicRegressionCurveCalculator::ImplGetRepresentation( if( ::rtl::math::approxEqual( fabs( m_fSlope ), 1.0 )) { if( m_fSlope < 0 ) - aBuf.append( UC_MINUS_SIGN ); + aBuf.append( "-" ); } else { aBuf.append( getFormattedString( xNumFormatter, nNumberFormatKey, m_fSlope )); - aBuf.append( UC_SPACE ); + aBuf.append( " " ); } aBuf.append( "ln(x)" ); bHaveSlope = true; @@ -156,9 +156,7 @@ OUString LogarithmicRegressionCurveCalculator::ImplGetRepresentation( { if( m_fIntercept < 0.0 ) { - aBuf.append( UC_SPACE ); - aBuf.append( UC_MINUS_SIGN ); - aBuf.append( UC_SPACE ); + aBuf.append( " - " ); aBuf.append( getFormattedString( xNumFormatter, nNumberFormatKey, fabs( m_fIntercept ))); } else if( m_fIntercept > 0.0 ) |