diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-17 11:41:06 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-19 14:46:56 -0400 |
commit | 2538e30ccc2e98de92de5157ca523fdb347eb537 (patch) | |
tree | f6e07c61cd108d73e7cc99752e89e08a4cde84ff /chart2/source/model/template/ChartTypeTemplate.cxx | |
parent | fdo#71558: Notify mispelled word to accessibility (diff) | |
download | core-2538e30ccc2e98de92de5157ca523fdb347eb537.tar.gz core-2538e30ccc2e98de92de5157ca523fdb347eb537.zip |
Use define constant to keep track of all NumberFormat property usage.
Change-Id: I2a544922e03ec8253290ac8bf5a89c9cdd72d8dd
Diffstat (limited to 'chart2/source/model/template/ChartTypeTemplate.cxx')
-rw-r--r-- | chart2/source/model/template/ChartTypeTemplate.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index de109e85a98a..b17952600940 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -31,6 +31,8 @@ #include "LegendHelper.hxx" #include "DiagramHelper.hxx" #include "AxisIndexDefines.hxx" +#include <unonames.hxx> + #include <cppuhelper/component_context.hxx> #include <com/sun/star/chart/ChartSolidType.hpp> #include <com/sun/star/chart2/AxisType.hpp> @@ -456,9 +458,9 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram if( xAxisProp.is()) { // set number format to source format - uno::Any aValue( xAxisProp->getPropertyValue("NumberFormat")); + uno::Any aValue = xAxisProp->getPropertyValue(CHART_UNONAME_NUMFMT); if( aValue.hasValue()) - xAxisProp->setPropertyValue("NumberFormat", uno::Any()); + xAxisProp->setPropertyValue(CHART_UNONAME_NUMFMT, uno::Any()); } } } @@ -756,9 +758,9 @@ void ChartTypeTemplate::adaptAxes( if( xAxisProp.is()) { // set number format to source format - uno::Any aValue( xAxisProp->getPropertyValue("NumberFormat")); + uno::Any aValue = xAxisProp->getPropertyValue(CHART_UNONAME_NUMFMT); if( aValue.hasValue()) - xAxisProp->setPropertyValue("NumberFormat", uno::Any()); + xAxisProp->setPropertyValue(CHART_UNONAME_NUMFMT, uno::Any()); } } } |