chart2/source/inc/RegressionCalculationHelper.hxx | 3 --- chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-)
New commits: commit 7704f811212cda3f4842cc095ad6cf4fd2c98d27 Author: Laurent Balland-Poirier <laurent.balland-poir...@laposte.net> Date: Tue Sep 29 22:30:42 2015 +0200 Trend line equation: remove useless defines Change-Id: I9a2089f1f7e3b0e881d4136293d557efb3c1ef1c Reviewed-on: https://gerrit.libreoffice.org/19001 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> diff --git a/chart2/source/inc/RegressionCalculationHelper.hxx b/chart2/source/inc/RegressionCalculationHelper.hxx index bd03e1c..8c88687 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 1d5251c..d43d437 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits