[Libreoffice-commits] core.git: chart2/source
Laurent Balland-Poirier
laurent.balland-poirier at laposte.net
Tue Sep 29 23:50:28 PDT 2015
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-poirier at 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 <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at 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 )
More information about the Libreoffice-commits
mailing list