summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-02-08 13:12:44 +0200
committerTor Lillqvist <tml@collabora.com>2017-02-08 13:35:19 +0200
commit3b94a463c5dad278b3d8d8c19d4572ba603c3943 (patch)
treed63db2536f9fb19854b16bfe9ba11c0ed596d118 /chart2
parentA newline is not that special or hard to remember (diff)
downloadcore-3b94a463c5dad278b3d8d8c19d4572ba603c3943.tar.gz
core-3b94a463c5dad278b3d8d8c19d4572ba603c3943.zip
The string "###" can be written as such, no need for a Special Const Variable
Change-Id: Ib9737acc8e0a9845fc03ed2c7de7969cef41f27c
Diffstat (limited to 'chart2')
-rw-r--r--chart2/inc/SpecialUnicodes.hxx1
-rw-r--r--chart2/source/tools/MeanValueRegressionCurveCalculator.cxx3
-rw-r--r--chart2/source/tools/RegressionCurveCalculator.cxx4
3 files changed, 2 insertions, 6 deletions
diff --git a/chart2/inc/SpecialUnicodes.hxx b/chart2/inc/SpecialUnicodes.hxx
index bbd1df6d51ec..446ea4914d4e 100644
--- a/chart2/inc/SpecialUnicodes.hxx
+++ b/chart2/inc/SpecialUnicodes.hxx
@@ -11,7 +11,6 @@
#define INCLUDED_CHART2_INC_SPECIALUNICODES_HXX
const sal_Unicode aMinusSign = 0x2212;
-const OUString aHashString ("###");
const sal_Unicode aSuperscriptFigures[10]={ 0x2070, 0x00B9, 0x00B2, 0x00B3, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079 };
#endif
diff --git a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
index 592a2014e340..6d662c1d252d 100644
--- a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
@@ -23,7 +23,6 @@
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
-#include <SpecialUnicodes.hxx>
using namespace ::com::sun::star;
@@ -121,7 +120,7 @@ OUString MeanValueRegressionCurveCalculator::ImplGetRepresentation(
{
*pFormulaLength -= aBuf.getLength();
if ( *pFormulaLength <= 0 )
- return aHashString;
+ return OUString("###");
}
return ( aBuf + getFormattedString( xNumFormatter, nNumberFormatKey, m_fMeanValue, pFormulaLength ) );
}
diff --git a/chart2/source/tools/RegressionCurveCalculator.cxx b/chart2/source/tools/RegressionCurveCalculator.cxx
index 4911078deac7..b24df25e27e6 100644
--- a/chart2/source/tools/RegressionCurveCalculator.cxx
+++ b/chart2/source/tools/RegressionCurveCalculator.cxx
@@ -30,8 +30,6 @@
#include <comphelper/numbers.hxx>
#include <comphelper/extract.hxx>
-#include <SpecialUnicodes.hxx>
-
using namespace ::com::sun::star;
using ::com::sun::star::uno::Reference;
@@ -90,7 +88,7 @@ OUString RegressionCurveCalculator::getFormattedString(
double fNumber, sal_Int32* pStringLength /* = nullptr */ )
{
if ( pStringLength && *pStringLength <= 0 )
- return aHashString;
+ return OUString("###");
OUString aResult;
if( xNumFormatter.is() )