summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2015-09-29 22:30:42 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-30 06:50:07 +0000
commit7704f811212cda3f4842cc095ad6cf4fd2c98d27 (patch)
tree7951781152be6fd9c87049dc8ec747d25ad1d408 /chart2
parentd721cc515b1056226c562b2d85870da6f69180a4 (diff)
Trend line equation: remove useless defines
Change-Id: I9a2089f1f7e3b0e881d4136293d557efb3c1ef1c Reviewed-on: https://gerrit.libreoffice.org/19001 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/RegressionCalculationHelper.hxx3
-rw-r--r--chart2/source/tools/LogarithmicRegressionCurveCalculator.cxx8
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 )